Skip to content

Instantly share code, notes, and snippets.

@nsommer
Last active June 13, 2020 14:00
Show Gist options
  • Save nsommer/048f55e89d05fe813a50a61007842cf3 to your computer and use it in GitHub Desktop.
Save nsommer/048f55e89d05fe813a50a61007842cf3 to your computer and use it in GitHub Desktop.
# Gemfile
gem 'paper_trail'
# app/models/my_model.rb
class MyModel < ApplicationRecord
has_paper_trail
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment