Module: Activity::Actable::InstanceMethods
- Defined in:
- lib/activity.rb
Overview
This module contains instance methods
Instance Method Summary collapse
-
#act(action, model) ⇒ Object
Records the activity to the model.
-
#actable ⇒ Object
Method to determine if the model is actable.
Instance Method Details
#act(action, model) ⇒ Object
Records the activity to the model
61 62 63 |
# File 'lib/activity.rb', line 61 def act(action,model) self.acts.create({:action=>action,:model_id=>model.id,:model_type=>model.class.name.to_sym}) end |
#actable ⇒ Object
Method to determine if the model is actable
57 58 59 |
# File 'lib/activity.rb', line 57 def actable true end |