Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Me loves me some whitespace

  • Loading branch information...
commit 471f0240189fcdd2067621d51427dc09565fdc6a 1 parent 201b64b
@dhh dhh authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 railties/lib/initializer.rb
View
7 railties/lib/initializer.rb
@@ -513,10 +513,15 @@ def initialize_temporary_session_directory
def initialize_time_zone
if configuration.time_zone
zone_default = Time.__send__(:get_zone, configuration.time_zone)
+
unless zone_default
- raise %{Value assigned to config.time_zone not recognized. Run "rake -D time" for a list of tasks for finding appropriate time zone names.}
+ raise \
+ 'Value assigned to config.time_zone not recognized.' +
+ 'Run "rake -D time" for a list of tasks for finding appropriate time zone names.'
end
+
Time.zone_default = zone_default
+
if configuration.frameworks.include?(:active_record)
ActiveRecord::Base.time_zone_aware_attributes = true
ActiveRecord::Base.default_timezone = :utc
Please sign in to comment.
Something went wrong with that request. Please try again.