1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

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

View file

@ -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

View file

@ -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.

View file

@ -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