Module: MailManager::ContactableRegistry::Contactable::Associations
- Defined in:
- app/models/mail_manager/contactable_registry.rb
Class Method Summary collapse
Class Method Details
.included(model) ⇒ Object
167 168 169 170 171 172 173 |
# File 'app/models/mail_manager/contactable_registry.rb', line 167 def self.included(model) model.class_eval do has_one :contact, :as => :contactable, :class_name => 'MailManager::Contact' #overloading with some extra stuff is better than this #has_many :subscriptions, :through => :contact, :class_name => 'MailManager::Subscription' end end |