aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-12-01 16:41:50 -0700
committerSean Griffin <sean@seantheprogrammer.com>2015-12-01 16:41:50 -0700
commit0d70078f11e61bd6cd1f67527b9622e569b989b5 (patch)
tree78ba68d2984072e8a838e54e744dc3537e1b84c0 /activerecord/lib
parentc403edf9c150693df2477ddcf23dcd52e9bef9ff (diff)
downloadrails-0d70078f11e61bd6cd1f67527b9622e569b989b5.tar.gz
rails-0d70078f11e61bd6cd1f67527b9622e569b989b5.tar.bz2
rails-0d70078f11e61bd6cd1f67527b9622e569b989b5.zip
Ensure `Relation` responds to `shuffle`
It appears that I missed this one when I delegated all the non-mutation array methods that were not on Enumerable
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/relation/delegation.rb2
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 b1333f110c..e4e5d63006 100644
--- a/activerecord/lib/active_record/relation/delegation.rb
+++ b/activerecord/lib/active_record/relation/delegation.rb
@@ -37,7 +37,7 @@ 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, :reverse, :compact, to: :to_a
+ :[], :&, :|, :+, :-, :sample, :shuffle, :reverse, :compact, to: :to_a
delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key,
:connection, :columns_hash, :to => :klass