Module: ErpBaseErpSvcs::Extensions::ActiveRecord::HasContacts::ClassMethods
- Defined in:
- lib/erp_base_erp_svcs/extensions/active_record/has_contacts.rb
Instance Method Summary collapse
Instance Method Details
#has_contacts ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/erp_base_erp_svcs/extensions/active_record/has_contacts.rb', line 11 def has_contacts extend HasContacts::SingletonMethods include HasContacts::InstanceMethods after_initialize :build_contact_methods has_many :contacts, :as => :contact_record, :dependent => :destroy end |