Module: MailManager::ContactableRegistry::Contactable::Associations

Defined in:
app/models/mail_manager/contactable_registry.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



174
175
176
177
178
179
180
# File 'app/models/mail_manager/contactable_registry.rb', line 174

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