Class: Rails::Console::ControllerInstance

Inherits:
RailsHelperBase
  • Object
show all
Defined in:
lib/rails/commands/console/irb_console.rb

Instance Method Summary collapse

Instance Method Details

#executeObject

This method assumes an ApplicationController exists, and that it extends ActionController::Base.



24
25
26
# File 'lib/rails/commands/console/irb_console.rb', line 24

def execute
  @controller ||= ApplicationController.new
end