method
perform
v6.0.0 -
Show latest stable
- Class:
Rails::Command::ConsoleCommand
perform()public
No documentation available.
# File railties/lib/rails/commands/console/console_command.rb, line 95
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