diff options
author | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-05-29 12:15:12 -0700 |
---|---|---|
committer | Cheah Chu Yeow <chuyeow@gmail.com> | 2008-05-29 12:15:12 -0700 |
commit | 377b2fdd0817d4706df9a5de13e651f1928c5e81 (patch) | |
tree | 6b7ffc6377f6697d470baf4bcd459933ee18c4a4 /activesupport/lib/active_support/json.rb | |
parent | 281a428f11c9c086a3ab33e68bdd41c928f95e53 (diff) | |
download | rails-377b2fdd0817d4706df9a5de13e651f1928c5e81.tar.gz rails-377b2fdd0817d4706df9a5de13e651f1928c5e81.tar.bz2 rails-377b2fdd0817d4706df9a5de13e651f1928c5e81.zip |
Add examples for #to_json for Date, Time, DateTime, TimeWithZone for the case when ActiveSupport.use_standard_json_time_format = true (and also when it is false).
Diffstat (limited to 'activesupport/lib/active_support/json.rb')
-rw-r--r-- | activesupport/lib/active_support/json.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json.rb b/activesupport/lib/active_support/json.rb index 54a7becd0f..2bdb4a7b11 100644 --- a/activesupport/lib/active_support/json.rb +++ b/activesupport/lib/active_support/json.rb @@ -1,5 +1,5 @@ module ActiveSupport - # If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format. + # If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format. mattr_accessor :use_standard_json_time_format class << self |