Module: Activity::Actable::InstanceMethods

Defined in:
lib/activity.rb

Overview

This module contains instance methods

Instance Method Summary collapse

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

#actableObject

Method to determine if the model is actable



57
58
59
# File 'lib/activity.rb', line 57

def actable
  true
end