Module: PaperTrail
- Defined in:
- lib/paper_trail.rb,
lib/paper_trail/has_paper_trail.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 |
# File 'lib/paper_trail.rb', line 7 def self.included(base) base.before_filter :set_whodunnit end |
.whodunnit ⇒ Object
11 12 13 |
# File 'lib/paper_trail.rb', line 11 def self.whodunnit Thread.current[:whodunnit] end |