aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-29 15:43:07 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-29 15:43:07 -0500
commitc0361344d95162cd8573592d60e52986eaca0377 (patch)
tree43287678ff53454e4803bd7a53120a76c4133641 /activerecord/lib/active_record/named_scope.rb
parent3cf773b187e803e16b8237e5923fa4c1139cde8a (diff)
downloadrails-c0361344d95162cd8573592d60e52986eaca0377.tar.gz
rails-c0361344d95162cd8573592d60e52986eaca0377.tar.bz2
rails-c0361344d95162cd8573592d60e52986eaca0377.zip
1.9: methods need to be coerced into strings
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index 570416d4e0..7397d70279 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -103,7 +103,7 @@ module ActiveRecord
attr_reader :proxy_scope, :proxy_options
NON_DELEGATE_METHODS = %w(nil? send object_id class extend find count sum average maximum minimum paginate first last empty? any? respond_to?).to_set
[].methods.each do |m|
- unless m =~ /^__/ || NON_DELEGATE_METHODS.include?(m)
+ unless m =~ /^__/ || NON_DELEGATE_METHODS.include?(m.to_s)
delegate m, :to => :proxy_found
end
end