Method: Positionable::InstanceMethods#higher_item

Defined in:
lib/positionable.rb

#higher_item(list_name = :default) ⇒ Object Also known as: previous_item

Returns the next higher item in the list.



177
178
179
180
# File 'lib/positionable.rb', line 177

def higher_item(list_name = :default)
  return nil unless in_list?
  scoped(list_name).descending(list_name).first(:conditions => options_for_position(list_name, '<'))
end