Class: InOrder::Move
- Inherits:
-
Aux::PositionBase
- Object
- Aux::PositionBase
- InOrder::Move
- Defined in:
- app/models/in_order/move.rb
Overview
Repositions an existing list element. Can be used in drag’n’drop lists.
Instance Attribute Summary
Attributes inherited from Aux::PositionBase
Instance Method Summary collapse
Methods inherited from Aux::PositionBase
Constructor Details
This class inherits a constructor from InOrder::Aux::PositionBase
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/models/in_order/move.rb', line 6 def call InOrder::Element.transaction do Remove.new(target, destroy: false).call Insert.new(target, marker, adjacency).call end end |