diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-26 20:39:16 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2014-01-26 21:25:54 +0000 |
commit | e3c382e3d69e7f25593cf45a4acc1b74bb93d057 (patch) | |
tree | 5cc3260c9ee723fb91e54b71ff64633e2af2deb2 /activesupport/lib/active_support/time_with_zone.rb | |
parent | ef17225173131541f0f5495ea31fc51ea46cb236 (diff) | |
download | rails-e3c382e3d69e7f25593cf45a4acc1b74bb93d057.tar.gz rails-e3c382e3d69e7f25593cf45a4acc1b74bb93d057.tar.bz2 rails-e3c382e3d69e7f25593cf45a4acc1b74bb93d057.zip |
Rename subsecond_fraction_digits option to time_precision
Diffstat (limited to 'activesupport/lib/active_support/time_with_zone.rb')
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index 26d4e686fd..1ed18fa473 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -154,7 +154,7 @@ module ActiveSupport # # => "2005/02/01 05:15:10 -1000" def as_json(options = nil) if ActiveSupport::JSON::Encoding.use_standard_json_time_format - digits = ActiveSupport::JSON::Encoding.subsecond_fraction_digits || 3 + digits = ActiveSupport::JSON::Encoding.time_precision || 3 xmlschema(digits) else %(#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}) |