Class: RTM::AR::TMDM::ItemIdentifier
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RTM::AR::TMDM::ItemIdentifier
- Defined in:
- lib/rtm/activerecord/tmdm.rb,
lib/rtm/activerecord/quaaxtm2rtm.rb,
lib/rtm/activerecord/quaaxtm2rtmviews.rb
Instance Method Summary collapse
Instance Method Details
#move_to(new_tmc) ⇒ Object
142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/rtm/activerecord/tmdm.rb', line 142 def move_to(new_tmc) #puts "\n\nmoving\n\t#{self.inspect}\n\nto\n\t#{new_tmc.inspect}" #self.update_all "construct_id = #{new_tmc.id}, construct_type = '#{new_tmc.class.name}'", #puts "changing id" #puts self.construct_id = new_tmc.id #puts "changing type" #puts self.construct_type = new_tmc.class.name self.construct = new_tmc #puts "saving" self.save # # das geht!!! #self.class.update( self.id, "construct_id" => new_tmc.id) end |
#to_s ⇒ Object
139 140 141 |
# File 'lib/rtm/activerecord/tmdm.rb', line 139 def to_s self.reference end |