diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-02-19 16:23:07 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-02-19 16:23:07 -0200 |
commit | 4f44348602446217df89536e911f516b065de33a (patch) | |
tree | d595fd04fcd8909c7d0e81b10606af2a388a0fde /activerecord/lib/active_record/relation | |
parent | 4c5846f13cbe6ddf2f8e71d766dd863116aa9f83 (diff) | |
parent | 95c24e9f9aed36b2ee650dbf779cf56dcdbbede3 (diff) | |
download | rails-4f44348602446217df89536e911f516b065de33a.tar.gz rails-4f44348602446217df89536e911f516b065de33a.tar.bz2 rails-4f44348602446217df89536e911f516b065de33a.zip |
Merge pull request #23782 from kdough/add-array-delegation-methods-to-relation
Add methods back to array delegation from ActiveRecord::Relation
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/delegation.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb index e4e5d63006..2b1ac42395 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -37,7 +37,8 @@ module ActiveRecord # for each different klass, and the delegations are compiled into that subclass only. delegate :to_xml, :to_yaml, :length, :collect, :map, :each, :all?, :include?, :to_ary, :join, - :[], :&, :|, :+, :-, :sample, :shuffle, :reverse, :compact, to: :to_a + :[], :&, :|, :+, :-, :sample, :reverse, :compact, :in_groups, :in_groups_of, + :shuffle, :split, to: :to_a delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key, :connection, :columns_hash, :to => :klass |