class Rails::Command::ConsoleCommand
def perform
def perform extract_environment_option_from_argument # RAILS_ENV needs to be set before config/application is required. ENV["RAILS_ENV"] = options[:environment] require_application_and_environment! Rails::Console.start(Rails.application, options) end