diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-09-10 09:38:09 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-09-10 09:51:53 +0900 |
commit | 40d5a609c99d81613f7fbf1f263e5b16091ee97e (patch) | |
tree | 0561a78f6220fa2078a36e758302fb4a51123dde /activesupport/lib/active_support/time_with_zone.rb | |
parent | 997acb9aadab4df57b5a4ce88ddce3ec9d5f5f45 (diff) | |
download | rails-40d5a609c99d81613f7fbf1f263e5b16091ee97e.tar.gz rails-40d5a609c99d81613f7fbf1f263e5b16091ee97e.tar.bz2 rails-40d5a609c99d81613f7fbf1f263e5b16091ee97e.zip |
fix wrong method used in the TimeWithZone#inspect method docs [ci skip]
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 817522677f..07fc787550 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -132,7 +132,7 @@ module ActiveSupport # Returns a string of the object's date, time, zone and offset from UTC. # - # Time.zone.now.httpdate # => "Thu, 04 Dec 2014 11:00:25 EST -05:00" + # Time.zone.now.inspect # => "Thu, 04 Dec 2014 11:00:25 EST -05:00" def inspect "#{time.strftime('%a, %d %b %Y %H:%M:%S')} #{zone} #{formatted_offset}" end |