diff options
author | Xavier Noria <fxn@hashref.com> | 2008-05-20 12:41:50 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-05-20 12:41:50 +0200 |
commit | 02674a892b992132707cc923e2ab45c11ca5d418 (patch) | |
tree | 53915a2c106123ba724b4163dd138fdb811e1fe7 | |
parent | 633e9b4c5656a18dc5cb1eff95d47fc1824b2c27 (diff) | |
download | rails-02674a892b992132707cc923e2ab45c11ca5d418.tar.gz rails-02674a892b992132707cc923e2ab45c11ca5d418.tar.bz2 rails-02674a892b992132707cc923e2ab45c11ca5d418.zip |
details left in previous revision of time zone related docs
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/zones.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/zones.rb b/activesupport/lib/active_support/core_ext/time/zones.rb index 9fff748d6c..079ecdd48e 100644 --- a/activesupport/lib/active_support/core_ext/time/zones.rb +++ b/activesupport/lib/active_support/core_ext/time/zones.rb @@ -10,7 +10,7 @@ module ActiveSupport #:nodoc: attr_accessor :zone_default # Returns the TimeZone for the current request, if this has been set (via Time.zone=). - # If Time.zone has not been set for the current request, returns the TimeZone specified in <tt>config.time_zone</tt>. + # If <tt>Time.zone</tt> has not been set for the current request, returns the TimeZone specified in <tt>config.time_zone</tt>. def zone Thread.current[:time_zone] || zone_default end diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index 3e87716ae0..ece95eeae9 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -225,12 +225,12 @@ module ActiveSupport utc.to_datetime.new_offset(Rational(utc_offset, 86_400)) end - # So that self acts_like?(:time). + # So that +self+ <tt>acts_like?(:time)</tt>. def acts_like_time? true end - # Say we're a Time to thwart type checking + # Say we're a Time to thwart type checking. def is_a?(klass) klass == ::Time || super end |