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:
parent
44dcdbaaa3
commit
b9b0d17768
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue