class Rails::Console::ControllerInstance
Public Instance Methods
# File railties/lib/rails/commands/console/irb_console.rb, line 24 def execute @controller ||= ApplicationController.new end
This method assumes an ApplicationController exists, and that it extends ActionController::Base.
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.