Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MailInbox < ActiveRecord::Base
- belongs_to :inbox
- delegate :name, :description, :to => @inbox
- after_create :create_inbox
- after_initialize :initialize_inbox
- protected
- def initialize_inbox
- @inbox = Inbox.new
- end
- def create_inbox
- @inbox.save
- end
- end
Add Comment
Please, Sign In to add comment