Permalink
Browse files

1.9: methods need to be coerced into strings

  • Loading branch information...
1 parent 3cf773b commit c0361344d95162cd8573592d60e52986eaca0377 @josh josh committed Aug 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/named_scope.rb
@@ -103,7 +103,7 @@ class Scope
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

0 comments on commit c036134

Please sign in to comment.