diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-22 17:25:17 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-22 17:25:17 -0500 |
commit | ba84bd933a484e5d365dcf52c9af24ec3937f602 (patch) | |
tree | 798a17bea2db1a02a68fb3dc464ff6daf77579bb /activerecord/lib/active_record/relation/delegation.rb | |
parent | c26a690b9964d90eea33f33a513ae9c349678cc0 (diff) | |
parent | 70b377f4648403b6facbe29b10e179eb649327a9 (diff) | |
download | rails-ba84bd933a484e5d365dcf52c9af24ec3937f602.tar.gz rails-ba84bd933a484e5d365dcf52c9af24ec3937f602.tar.bz2 rails-ba84bd933a484e5d365dcf52c9af24ec3937f602.zip |
Merge pull request #14757 from estsauver/14752
Fix behavior of select! to be consistent with select #14752
Diffstat (limited to 'activerecord/lib/active_record/relation/delegation.rb')
-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 21beed332f..9c666dcd3b 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -40,7 +40,7 @@ module ActiveRecord BLACKLISTED_ARRAY_METHODS = [ :compact!, :flatten!, :reject!, :reverse!, :rotate!, :map!, :shuffle!, :slice!, :sort!, :sort_by!, :delete_if, - :keep_if, :pop, :shift, :delete_at, :compact + :keep_if, :pop, :shift, :delete_at, :compact, :select! ].to_set # :nodoc: delegate :to_xml, :to_yaml, :length, :collect, :map, :each, :all?, :include?, :to_ary, to: :to_a |