Module: Courier::Owner
- Defined in:
- lib/courier/owner.rb
Defined Under Namespace
Modules: InstanceMethods
Instance Method Summary collapse
Instance Method Details
#has_courier ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/courier/owner.rb', line 11 def has_courier has_one :courier, :as => :owner, :dependent => :destroy, :class_name=>'Courier::OwnerSetting' has_many :courier_messages, :as => :owner, :dependent => :destroy, :class_name=>'Courier::Message' include InstanceMethods after_create do create_courier end end |