mirror of
https://github.com/github/rails.git
synced 2026-02-12 23:25:00 -05:00
1.9: methods need to be coerced into strings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user