Replace reopening the class with App.configure as an alias to class_eval

This commit is contained in:
Carlhuda 2009-12-21 16:35:54 -08:00
parent b0b4ae970c
commit d982fe2b2f
4 changed files with 7 additions and 3 deletions

@ -66,6 +66,10 @@ def config
self.class.config
end
class << self
alias configure class_eval
end
def root
config.root
end

@ -1,4 +1,4 @@
class <%= app_const %>
<%= app_const %>.configure do
# Settings specified here will take precedence over those in config/environment.rb
# In the development environment your application's code is reloaded on

@ -1,4 +1,4 @@
class <%= app_const %>
<%= app_const %>.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.

@ -1,4 +1,4 @@
class <%= app_const %>
<%= app_const %>.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The test environment is used exclusively to run your application's