mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't use Rails.root since it is not available at this point
This commit is contained in:
parent
162e285981
commit
107e5720fe
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ module Rails
|
|||
private
|
||||
|
||||
def available_environments
|
||||
Dir[Rails.root.join('config', 'environments', '*.rb')].map { |fname| File.basename(fname, '.*') }
|
||||
Dir['config/environments/*.rb'].map { |fname| File.basename(fname, '.*') }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ module Rails
|
|||
end
|
||||
|
||||
def available_environments
|
||||
Dir[Rails.root.join('config', 'environments', '*.rb')].map { |fname| File.basename(fname, '.*') }
|
||||
Dir['config/environments/*.rb'].map { |fname| File.basename(fname, '.*') }
|
||||
end
|
||||
|
||||
def find_cmd_and_exec(commands, *args)
|
||||
|
|
Loading…
Reference in a new issue