public
Description: has_adjacent_finders allows you to find rows that are adjacent to other records in your database.
Homepage: http://aktagon.com/projects/rails/has_adjacent_finders
Clone URL: git://github.com/christianhellsten/has_adjacent_finders.git
Tue Oct 21 09:25:04 -0700 2008
commit  1ac5a80b225a667488cf02da0302297a5295abdc
tree    18728fa08da910c88943db0a689438d94f95da0d
name age message
file LICENSE Loading commit data...
file README.textile
file init.rb
directory lib/
directory test/
README.textile

has-adjacent-finders

This plugin allows you to find rows adjacent to an arbitrary row by adding the following methods to ActiveRecord models:

  • find_next_row - find record to the right of current record
  • find_previous_row - find record to the left of current record
  • find_next_rows - find records to the right of current record
  • find_previous_rows - find records to the left of current record
  • find_adjacent_rows - find records to the right and left of current record
    ***************************************************************************

Author

Christian Hellsten
Aktagon Ltd.