Module: BaseCrm::Noteable

Included in:
Contact, Deal, Lead
Defined in:
lib/base_crm/noteable.rb

Instance Method Summary collapse

Instance Method Details

#create_note(message) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/base_crm/noteable.rb', line 11

def create_note(message)
  pass_headers(Note).create({
    :content => message,
    :noteable_type => self.noteable_type,
    :noteable_id => self.id
  })
end

#notesObject



4
5
6
7
8
9
# File 'lib/base_crm/noteable.rb', line 4

def notes
  pass_headers(Note).params({
    :noteable_type => self.noteable_type,
    :noteable_id => self.id
  })
end