• J
    Ensure #second acts like #first AR finder · cafe31a0
    Jason Meller 提交于
    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.
    cafe31a0
named_scoping_test.rb 14.1 KB