diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-20 17:11:41 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-20 18:12:44 -0700 |
commit | 5f222c524ed00b2ac805e267f70a916cf8f9bc77 (patch) | |
tree | 1689d5d964cccc5a902449dd9de86705f831a5d8 /railties/lib/tasks | |
parent | 3694227f24d0f220c0ce7ef6c7f51598e2715d2d (diff) | |
download | rails-5f222c524ed00b2ac805e267f70a916cf8f9bc77.tar.gz rails-5f222c524ed00b2ac805e267f70a916cf8f9bc77.tar.bz2 rails-5f222c524ed00b2ac805e267f70a916cf8f9bc77.zip |
Remove 'core' fluff. Hookable ActiveSupport.load_all!
Diffstat (limited to 'railties/lib/tasks')
-rw-r--r-- | railties/lib/tasks/misc.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/tasks/misc.rake b/railties/lib/tasks/misc.rake index a2c338aa5b..fb2fc31dc1 100644 --- a/railties/lib/tasks/misc.rake +++ b/railties/lib/tasks/misc.rake @@ -31,7 +31,7 @@ namespace :time do desc 'Displays names of time zones recognized by the Rails TimeZone class with the same offset as the system local time' task :local do require 'active_support' - require 'active_support/core/time' + require 'active_support/time' jan_offset = Time.now.beginning_of_year.utc_offset jul_offset = Time.now.beginning_of_year.change(:month => 7).utc_offset offset = jan_offset < jul_offset ? jan_offset : jul_offset @@ -41,7 +41,7 @@ namespace :time do # to find UTC -06:00 zones, OFFSET can be set to either -6, -6:00 or 21600 def build_time_zone_list(method, offset = ENV['OFFSET']) require 'active_support' - require 'active_support/core/time' + require 'active_support/time' if offset offset = if offset.to_s.match(/(\+|-)?(\d+):(\d+)/) sign = $1 == '-' ? -1 : 1 |