Changeset 7736 for trunk/activesupport/lib/active_support/json/encoding.rb
- Timestamp:
- 10/04/07 03:28:42 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/json/encoding.rb
r7697 r7736 18 18 19 19 # Converts a Ruby object into a JSON string. 20 def encode(value )20 def encode(value, options = {}) 21 21 raise_on_circular_reference(value) do 22 value.send(:to_json )22 value.send(:to_json, options) 23 23 end 24 24 end