Replace reopening the class with App.configure as an alias to class_eval
This commit is contained in:
parent
b0b4ae970c
commit
d982fe2b2f
|
@ -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 New Issue