diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-26 20:05:17 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-26 20:05:17 -0700 |
commit | f58c322e7e08003b2bb4d2281b2db1e78930e8ff (patch) | |
tree | 242c9621efef3c96d5f9bfadf3100420776dccaa /activesupport | |
parent | ee46ffedb88f812467485167036c7d254d0ce757 (diff) | |
download | rails-f58c322e7e08003b2bb4d2281b2db1e78930e8ff.tar.gz rails-f58c322e7e08003b2bb4d2281b2db1e78930e8ff.tar.bz2 rails-f58c322e7e08003b2bb4d2281b2db1e78930e8ff.zip |
Use __send__ for BasicObject friendliness
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/json/encoding.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/encoding.rb b/activesupport/lib/active_support/json/encoding.rb index 5441145dfd..5fefe5b88b 100644 --- a/activesupport/lib/active_support/json/encoding.rb +++ b/activesupport/lib/active_support/json/encoding.rb @@ -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 |