Class: RTM::AR::TMDM::Association
- Inherits:
-
ScopedObject
- Object
- ActiveRecord::Base
- Construct
- Reifiable
- ScopedObject
- RTM::AR::TMDM::Association
- Defined in:
- lib/rtm/activerecord/tmdm.rb
Instance Method Summary collapse
- #create_role(rplayer, ttype) ⇒ Object (also: #create_association_role)
Methods inherited from ScopedObject
Methods inherited from Reifiable
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
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 |