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
1 changed files with 4 additions and 0 deletions

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