From 9f9a02af86dee5372aae2bd84a5220245bee8706 Mon Sep 17 00:00:00 2001 From: "Josep M. Bach" Date: Sat, 14 Aug 2010 17:52:52 +0200 Subject: Whitespace and example identation --- activesupport/lib/active_support/time_with_zone.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/lib/active_support/time_with_zone.rb') 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 -- cgit v1.2.3