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:
parent
b0b4ae970c
commit
d982fe2b2f
4 changed files with 7 additions and 3 deletions
|
@ -66,6 +66,10 @@ module Rails
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue