aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/console_helper.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-09-12 21:59:26 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2016-09-25 21:31:45 +0200
commit03c982fa3417fc49a380eeb88fdd26fdd4bae46b (patch)
treebf60ebe8bd609876bc381893d20b450b3a023917 /railties/lib/rails/commands/console_helper.rb
parent4e106ee08b36c2047a6af3829f3497459590c98a (diff)
downloadrails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.tar.gz
rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.tar.bz2
rails-03c982fa3417fc49a380eeb88fdd26fdd4bae46b.zip
Remove the old command files.
Wash out your old! These adhoc scripts are replaced by the new commands.
Diffstat (limited to 'railties/lib/rails/commands/console_helper.rb')
-rw-r--r--railties/lib/rails/commands/console_helper.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/railties/lib/rails/commands/console_helper.rb b/railties/lib/rails/commands/console_helper.rb
deleted file mode 100644
index 0b7f1c4249..0000000000
--- a/railties/lib/rails/commands/console_helper.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-require "active_support/concern"
-
-module Rails
- module ConsoleHelper # :nodoc:
- extend ActiveSupport::Concern
-
- module ClassMethods
- def start(*args)
- new(*args).start
- end
-
- private
- def set_options_env(arguments, options)
- if arguments.first && arguments.first[0] != "-"
- env = arguments.first
- if available_environments.include? env
- options[:environment] = env
- else
- options[:environment] = %w(production development test).detect { |e| e =~ /^#{env}/ } || env
- end
- end
- options
- end
-
- def available_environments
- Dir["config/environments/*.rb"].map { |fname| File.basename(fname, ".*") }
- end
- end
-
- def environment
- ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
- end
- end
-end