Method: Positionable::InstanceMethods#lower_item
- Defined in:
- lib/positionable.rb
#lower_item(list_name = :default) ⇒ Object Also known as: next_item
Returns the next lower item in the list.
184 185 186 187 |
# File 'lib/positionable.rb', line 184 def lower_item(list_name = :default) return nil unless in_list? scoped(list_name).ascending(list_name).first(:conditions => (list_name, '>')) end |