Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't use Rails.root since it is not available at this point

  • Loading branch information...
commit 107e5720fea9873a14d0fe7459b9784a08c3a953 1 parent 162e285
@rafaelfranca rafaelfranca authored
View
2  railties/lib/rails/commands/console.rb
@@ -37,7 +37,7 @@ def parse_arguments(arguments)
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
2  railties/lib/rails/commands/dbconsole.rb
@@ -147,7 +147,7 @@ def parse_arguments(arguments)
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)

1 comment on commit 107e572

@rafaelfranca

@rubys I hope this fixes your issue. Thank you for reporting it :heart:

Please sign in to comment.
Something went wrong with that request. Please try again.