diff options
author | Brian Christian <brchristian@gmail.com> | 2016-02-09 16:02:08 -0800 |
---|---|---|
committer | Brian Christian <brchristian@gmail.com> | 2016-02-09 16:02:08 -0800 |
commit | c74045cf0771ab51dfeca94b30c447cab6193e60 (patch) | |
tree | 277b16c5e586866a7284b63ac753035a7f81dd3e /activerecord/lib/active_record/querying.rb | |
parent | b5eb2423b6e431ba53e3836d58449e7e810096b4 (diff) | |
download | rails-c74045cf0771ab51dfeca94b30c447cab6193e60.tar.gz rails-c74045cf0771ab51dfeca94b30c447cab6193e60.tar.bz2 rails-c74045cf0771ab51dfeca94b30c447cab6193e60.zip |
allow Array.penultimate and Array.antepenultiate access methods
Diffstat (limited to 'activerecord/lib/active_record/querying.rb')
-rw-r--r-- | activerecord/lib/active_record/querying.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb index 1f429cfd94..0a82832f56 100644 --- a/activerecord/lib/active_record/querying.rb +++ b/activerecord/lib/active_record/querying.rb @@ -1,7 +1,7 @@ module ActiveRecord module Querying delegate :find, :take, :take!, :first, :first!, :last, :last!, :exists?, :any?, :many?, to: :all - delegate :second, :second!, :third, :third!, :fourth, :fourth!, :fifth, :fifth!, :forty_two, :forty_two!, to: :all + delegate :second, :second!, :third, :third!, :fourth, :fourth!, :fifth, :fifth!, :forty_two, :forty_two!, :antepenultimate, :antepenultimate!, :penultimate, :penultimate!, to: :all delegate :first_or_create, :first_or_create!, :first_or_initialize, to: :all delegate :find_or_create_by, :find_or_create_by!, :find_or_initialize_by, to: :all delegate :find_by, :find_by!, to: :all |