Skip to content

Commit

Permalink
Merge pull request rails#21567 from y-yagi/fix_inspect_doc
Browse files Browse the repository at this point in the history
fix wrong method used in the TimeWithZone#inspect method docs [ci skip]
  • Loading branch information
Zachary Scott committed Sep 10, 2015
2 parents b455cad + 40d5a60 commit 0f40bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/time_with_zone.rb
Expand Up @@ -132,7 +132,7 @@ def zone

# 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
Expand Down

0 comments on commit 0f40bec

Please sign in to comment.