Class: RTM::AR::TMDM::Association

Inherits:
ScopedObject show all
Defined in:
lib/rtm/activerecord/tmdm.rb

Instance Method Summary collapse

Methods inherited from ScopedObject

abstract_class?

Methods inherited from Reifiable

abstract_class?

Methods inherited from Construct

abstract_class?, alias_ar_relation, belongs_to_parent, belongs_to_with_alias, has_many_with_alias, #move_to, this_is_a_typed_object, #topic_map

Methods included from Movable

#move_all

Instance Method Details

#create_role(rplayer, ttype) ⇒ Object Also known as: create_association_role



225
226
227
# File 'lib/rtm/activerecord/tmdm.rb', line 225

def create_role(rplayer, ttype)
  Role.create :parent => self, :player => rplayer, :ttype => ttype
end