aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorTarmo Tänav <tarmo@itech.ee>2008-08-23 18:05:52 +0300
committerTarmo Tänav <tarmo@itech.ee>2008-08-23 18:05:52 +0300
commitcf28109158054fbab91de2d6d86efe1b40e68d93 (patch)
tree323d57560db2a6583080f217c51cf36b77087181 /railties/lib
parentb5c4c7daf8e26e829ec4d7ece91f622d9e1a49fa (diff)
downloadrails-cf28109158054fbab91de2d6d86efe1b40e68d93.tar.gz
rails-cf28109158054fbab91de2d6d86efe1b40e68d93.tar.bz2
rails-cf28109158054fbab91de2d6d86efe1b40e68d93.zip
Always require activesupport, even if its constant already exists
This is needed because the existance of the ActiveSupport constant by itself does not guarantee that the whole library has been loaded. Also load the StringInquirer in the Rails#env method as the it might be called inside the initializer block before activesupport itself has been loaded.
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/initializer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index ee847e5561..008f1de8fa 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -49,6 +49,7 @@ module Rails
end
def env
+ require 'active_support/string_inquirer'
ActiveSupport::StringInquirer.new(RAILS_ENV)
end