mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use __send__ for BasicObject friendliness
This commit is contained in:
parent
ee46ffedb8
commit
f58c322e7e
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ module ActiveSupport
|
|||
raise CircularReferenceError, 'object references itself'
|
||||
end
|
||||
seen << value
|
||||
value.send(:rails_to_json, options, seen)
|
||||
value.__send__(:rails_to_json, options, seen)
|
||||
ensure
|
||||
seen.pop
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue