Module: Mover::InstanceMethods
- Defined in:
- lib/mover.rb
Instance Method Summary collapse
Instance Method Details
#move_to(to_class, options = {}) ⇒ Object
186 187 188 189 190 |
# File 'lib/mover.rb', line 186 def move_to(to_class, ={}) [:conditions] = "#{self.class.table_name}.#{self.class.primary_key} = #{id}" [:instance] = self self.class.move_to(to_class, ) end |