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_initialize :initialize_inbox
- after_save :save_inbox
- protected
- def initialize_inbox
- puts "building inbox"
- build_inbox
- end
- def save_inbox
- inbox.save
- end
- end
Add Comment
Please, Sign In to add comment