Module: BaseCrm::Taskable
Instance Method Summary collapse
Instance Method Details
#create_task(params) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/base_crm/taskable.rb', line 11 def create_task(params) pass_headers(Task).create({ :taskable_type => self.taskable_type, :taskable_id => self.id }.merge(params)) end |
#tasks ⇒ Object
4 5 6 7 8 9 |
# File 'lib/base_crm/taskable.rb', line 4 def tasks pass_headers(Task).params({ :taskable_type => self.taskable_type, :taskable_id => self.id }) end |