diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-08-14 16:30:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 16:30:18 -0400 |
commit | fb99a48b063c337317aaf20fe50a02519f553265 (patch) | |
tree | fb45d0b9de05e639450961a13dfcb253109b9710 | |
parent | 916d9d70a08b0c688eb82931ae41ef195ee24de5 (diff) | |
parent | b61e9e2ace0cbd547e5da3224f7ec87784b41443 (diff) | |
download | rails-fb99a48b063c337317aaf20fe50a02519f553265.tar.gz rails-fb99a48b063c337317aaf20fe50a02519f553265.tar.bz2 rails-fb99a48b063c337317aaf20fe50a02519f553265.zip |
Merge pull request #26012 from grosser/grosser/missing
add more array methods to straight delegation to speed up calling them
-rw-r--r-- | activerecord/lib/active_record/relation/delegation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb index b4147ce434..e1c36982dd 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -38,7 +38,7 @@ module ActiveRecord delegate :to_xml, :encode_with, :length, :collect, :map, :each, :all?, :include?, :to_ary, :join, :[], :&, :|, :+, :-, :sample, :reverse, :compact, :in_groups, :in_groups_of, - :shuffle, :split, to: :records + :shuffle, :split, :index, to: :records delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key, :connection, :columns_hash, to: :klass |