Method: Positionable::InstanceMethods#move_to_top

Defined in:
lib/positionable.rb

#move_to_top(list_name = :default) ⇒ Object

Move to the top of the list.



162
163
164
# File 'lib/positionable.rb', line 162

def move_to_top(list_name = :default)
  insert_at_position(list_name, :top) if in_list?
end