1
0
Fork 0
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:
Rafael Mendonça França 2013-01-05 05:01:14 -03:00
parent 162e285981
commit 107e5720fe
2 changed files with 2 additions and 2 deletions

View file

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

View file

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