Module: CapsuleCRM::Contactable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Organization, Person
- Defined in:
- lib/capsule_crm/contactable.rb
Instance Method Summary collapse
Instance Method Details
#contacts ⇒ Object
23 24 25 |
# File 'lib/capsule_crm/contactable.rb', line 23 def contacts @contacts ||= CapsuleCRM::Contacts.new end |
#contacts=(contacts) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/capsule_crm/contactable.rb', line 16 def contacts=(contacts) if contacts.is_a?(Hash) contacts = CapsuleCRM::Contacts.new(contacts.symbolize_keys) end @contacts = contacts unless contacts.blank? end |