aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorZachary Scott <mail@zzak.io>2015-09-09 20:53:30 -0400
committerZachary Scott <mail@zzak.io>2015-09-09 20:53:30 -0400
commit0f40becce055d236067e8d656107d98ca20a0614 (patch)
tree4c71c236846c0da054b6455d9db3df05b18fe640 /activesupport/lib/active_support
parentb455cadbfd0a272879c8703ba37375eb724aa493 (diff)
parent40d5a609c99d81613f7fbf1f263e5b16091ee97e (diff)
downloadrails-0f40becce055d236067e8d656107d98ca20a0614.tar.gz
rails-0f40becce055d236067e8d656107d98ca20a0614.tar.bz2
rails-0f40becce055d236067e8d656107d98ca20a0614.zip
Merge pull request #21567 from y-yagi/fix_inspect_doc
fix wrong method used in the TimeWithZone#inspect method docs [ci skip]
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/time_with_zone.rb2
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