Module: PaperTrail::Model::InstanceMethods

Defined in:
lib/paper_trail/has_paper_trail.rb

Overview

Wrap the following methods in a module so we can include them only in the ActiveRecord models that declare ‘has_paper_trail`.

Instance Method Summary collapse

Instance Method Details

#paper_trailObject



85
86
87
# File 'lib/paper_trail/has_paper_trail.rb', line 85

def paper_trail
  ::PaperTrail::RecordTrail.new(self)
end