diff options
author | Josep M. Bach <josep.m.bach@gmail.com> | 2010-08-14 17:52:52 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-15 02:22:38 +0200 |
commit | 9f9a02af86dee5372aae2bd84a5220245bee8706 (patch) | |
tree | d3e0d6291d43a15ca9f062f8737f6751921bf4e4 /activesupport/lib/active_support/time_with_zone.rb | |
parent | e8ef58a697c4af99a7db44267cf6d975fb5d6091 (diff) | |
download | rails-9f9a02af86dee5372aae2bd84a5220245bee8706.tar.gz rails-9f9a02af86dee5372aae2bd84a5220245bee8706.tar.bz2 rails-9f9a02af86dee5372aae2bd84a5220245bee8706.zip |
Whitespace and example identation
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, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index 48c7990b1e..93f5d5a0cc 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -32,6 +32,7 @@ module ActiveSupport # t > Time.utc(1999) # => true # t.is_a?(Time) # => true # t.is_a?(ActiveSupport::TimeWithZone) # => true + # class TimeWithZone def self.name 'Time' # Report class name as 'Time' to thwart type checking @@ -127,6 +128,7 @@ module ActiveSupport # # With ActiveSupport::JSON::Encoding.use_standard_json_time_format = false # Time.utc(2005,2,1,15,15,10).in_time_zone.to_json # # => "2005/02/01 15:15:10 +0000" + # def as_json(options = nil) if ActiveSupport::JSON::Encoding.use_standard_json_time_format xmlschema |