Module: Concerns::Trackable::ClassMethods
- Defined in:
- app/models/concerns/trackable.rb
Instance Method Summary collapse
- #not_tracked_if(l) ⇒ Object
-
#tracked_as(l) ⇒ Object
Pass a lambda finding the name of the tracked model.
-
#tracked_by(l) ⇒ Object
Pass a lambda finding the users that must be notified.
Instance Method Details
#not_tracked_if(l) ⇒ Object
40 41 42 |
# File 'app/models/concerns/trackable.rb', line 40 def not_tracked_if(l) not_tracked[:method] = l end |
#tracked_as(l) ⇒ Object
Pass a lambda finding the name of the tracked model.
36 37 38 |
# File 'app/models/concerns/trackable.rb', line 36 def tracked_as(l) find_trackable_as[:method] = l end |
#tracked_by(l) ⇒ Object
Pass a lambda finding the users that must be notified.
31 32 33 |
# File 'app/models/concerns/trackable.rb', line 31 def tracked_by(l) find_trackers[:method] = l end |