Permalink
Browse files

Me loves me some whitespace

  • Loading branch information...
1 parent 201b64b commit 471f0240189fcdd2067621d51427dc09565fdc6a @dhh dhh committed Nov 30, 2008
Showing with 6 additions and 1 deletion.
  1. +6 −1 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

0 comments on commit 471f024

Please sign in to comment.