1
0
Fork 0
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:
Jeremy Kemper 2009-04-26 20:05:17 -07:00
parent ee46ffedb8
commit f58c322e7e

View file

@ -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