aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJordan Raine <jnraine@gmail.com>2015-04-20 17:24:24 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-28 00:35:04 -0300
commit57daaef86ae676567ce67f2be60ca8607fb9182b (patch)
tree2fb4f3b194294b858142d9252cf091a8808a6a75 /activerecord
parent902360b77f51ade0eedcc6b0f8db6cd30aa97582 (diff)
downloadrails-57daaef86ae676567ce67f2be60ca8607fb9182b.tar.gz
rails-57daaef86ae676567ce67f2be60ca8607fb9182b.tar.bz2
rails-57daaef86ae676567ce67f2be60ca8607fb9182b.zip
Allow Relation#compact using delegation
Diffstat (limited to 'activerecord')
-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 d4a8823cfe..86f2c30168 100644
--- a/activerecord/lib/active_record/relation/delegation.rb
+++ b/activerecord/lib/active_record/relation/delegation.rb
@@ -39,7 +39,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, :select!
+ :keep_if, :pop, :shift, :delete_at, :select!
].to_set # :nodoc:
delegate :to_xml, :to_yaml, :length, :collect, :map, :each, :all?, :include?, :to_ary, :join, to: :to_a