diff options
Diffstat (limited to 'railties/lib/rails/commands/console_helper.rb')
-rw-r--r-- | railties/lib/rails/commands/console_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/commands/console_helper.rb b/railties/lib/rails/commands/console_helper.rb index 8ee0b60012..0b7f1c4249 100644 --- a/railties/lib/rails/commands/console_helper.rb +++ b/railties/lib/rails/commands/console_helper.rb @@ -1,4 +1,4 @@ -require 'active_support/concern' +require "active_support/concern" module Rails module ConsoleHelper # :nodoc: @@ -8,10 +8,10 @@ module Rails def start(*args) new(*args).start end - + private def set_options_env(arguments, options) - if arguments.first && arguments.first[0] != '-' + if arguments.first && arguments.first[0] != "-" env = arguments.first if available_environments.include? env options[:environment] = env @@ -23,12 +23,12 @@ module Rails end def available_environments - Dir['config/environments/*.rb'].map { |fname| File.basename(fname, '.*') } - end + Dir["config/environments/*.rb"].map { |fname| File.basename(fname, ".*") } + end end def environment ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" end end -end
\ No newline at end of file +end |