diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-25 22:35:54 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-25 22:35:54 -0500 |
commit | 85e0a6cd7df2081c5578fe4b563f26d1cc791b6b (patch) | |
tree | 45d60f6b0856cb7eca2e2ef63a76a5e471f072c5 | |
parent | 968c994c3b45147a822816d926a37c582c66859f (diff) | |
download | rails-85e0a6cd7df2081c5578fe4b563f26d1cc791b6b.tar.gz rails-85e0a6cd7df2081c5578fe4b563f26d1cc791b6b.tar.bz2 rails-85e0a6cd7df2081c5578fe4b563f26d1cc791b6b.zip |
Set const for application object. "Basecamp::Application"
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environment.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environment.rb b/railties/lib/rails/generators/rails/app/templates/config/environment.rb index adb3a3060a..2f2d1162c0 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environment.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/environment.rb @@ -6,7 +6,9 @@ # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') -Rails::Initializer.run do |config| +module <%= app_name.camelize %>; end + +<%= app_name.camelize %>::Application = Rails::Initializer.run do |config| # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. |