Class: Mycrm::Models::Adviser
- Inherits:
-
Object
- Object
- Mycrm::Models::Adviser
- Includes:
- Mycrm::Model
- Defined in:
- lib/mycrm/models/adviser.rb
Instance Method Summary collapse
- #add_client_type(id) ⇒ Object
- #reporting_country=(country) ⇒ Object
- #source=(source) ⇒ Object
- #type=(country) ⇒ Object
Methods included from Mycrm::Model
Instance Method Details
#add_client_type(id) ⇒ Object
45 46 47 |
# File 'lib/mycrm/models/adviser.rb', line 45 def add_client_type(id) self.client_type_ids = self.client_type_ids.to_s.split(',').push(id).join(',') end |
#reporting_country=(country) ⇒ Object
49 50 51 |
# File 'lib/mycrm/models/adviser.rb', line 49 def reporting_country=(country) self.reporting_country_id = Mycrm::Domains::Countries.find(country) rescue nil end |