1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

close #392; Update README instructions to include instructions for how to use a custom initializer and prevent breakage of the Rails::Engine functionality [ci skip]

This commit is contained in:
Ben Atkins 2014-07-08 18:54:27 -04:00
parent 44dcdbaaa3
commit b9b0d17768

View file

@ -721,6 +721,10 @@ For example:
```ruby
# config/initializers/paper_trail.rb
# the following line is required for PaperTrail >= 3.0.3 with Rails
PaperTrail::Rails::Engine.eager_load!
module PaperTrail
class Version < ActiveRecord::Base
attr_accessible :author_id, :word_count, :answer