Module: TokakEngine::User::Associtations
- Defined in:
- lib/tokak_engine/user.rb
Class Method Summary collapse
Class Method Details
.included(model) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/tokak_engine/user.rb', line 16 def self.included(model) model.class_eval do :class_name => 'UserAvatar' do |ua| ua.has_many :avatars, :dependent => :destroy ua.belongs_to :avatar end accepts_nested_attributes_for :avatars, :allow_destroy => true end end |