aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJon Atack <jonnyatack@gmail.com>2015-07-17 20:15:35 +0200
committerJon Atack <jonnyatack@gmail.com>2015-07-17 20:18:57 +0200
commitea747f7d2ee3854627c4cdc41fa059f249e87394 (patch)
tree8e4e624b8bae0733338f56410adae24bc0ce16e5 /activesupport
parent2c79122c0bbd61dcef12b95c80e025490d5a9783 (diff)
downloadrails-ea747f7d2ee3854627c4cdc41fa059f249e87394.tar.gz
rails-ea747f7d2ee3854627c4cdc41fa059f249e87394.tar.bz2
rails-ea747f7d2ee3854627c4cdc41fa059f249e87394.zip
[skip ci] Lookup can be a noun but it is not a verb
Various grammar corrections and wrap to 80 characters.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/time/zones.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/zones.rb b/activesupport/lib/active_support/core_ext/time/zones.rb
index d683e7c777..133d3938eb 100644
--- a/activesupport/lib/active_support/core_ext/time/zones.rb
+++ b/activesupport/lib/active_support/core_ext/time/zones.rb
@@ -65,7 +65,8 @@ class Time
if !time_zone || time_zone.is_a?(ActiveSupport::TimeZone)
time_zone
else
- # lookup timezone based on identifier (unless we've been passed a TZInfo::Timezone)
+ # Look up the timezone based on the identifier (unless we've been
+ # passed a TZInfo::Timezone)
unless time_zone.respond_to?(:period_for_local)
time_zone = ActiveSupport::TimeZone[time_zone] || TZInfo::Timezone.get(time_zone)
end