Permalink
Browse files

Use __send__ for BasicObject friendliness

  • Loading branch information...
1 parent ee46ffe commit f58c322e7e08003b2bb4d2281b2db1e78930e8ff @jeremy jeremy committed Apr 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/json/encoding.rb
@@ -10,7 +10,7 @@ def self.encode(value, options = nil, seen = nil)
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

0 comments on commit f58c322

Please sign in to comment.