rails/activerecord/test/cases/scoping
Jason Meller cafe31a078 Ensure #second acts like #first AR finder
This commit bring the famous ordinal Array instance methods defined
in ActiveSupport into ActiveRecord as fully-fledged finders.

These finders ensure a default ascending order of the table's primary
key, and utilize the OFFSET SQL verb to locate the user's desired
record. If an offset is defined in the query, calling #second adds
to the offset to get the actual desired record.

Fixes #13743.
2014-01-20 16:58:18 -05:00
..
default_scoping_test.rb Fix bad usage of #select with hash 2013-12-03 10:45:40 -02:00
named_scoping_test.rb Ensure #second acts like #first AR finder 2014-01-20 16:58:18 -05:00
relation_scoping_test.rb split relation_scoping_test.rb's default scoping tests into another file 2013-03-30 13:23:01 +09:00