Method: ActsAsList::InstanceMethods#move_to_bottom

Defined in:
lib/acts_as_list.rb

#move_to_bottomObject

Move to the bottom of the list. If the item is already in the list, the items below it have their position adjusted accordingly.



102
103
104
105
106
107
108
# File 'lib/acts_as_list.rb', line 102

def move_to_bottom
  return unless in_list?
  acts_as_list_class.transaction do
    decrement_positions_on_lower_items
    assume_bottom_position
  end
end