Module: WebConsole::ControllerHelpers

Extended by:
ActiveSupport::Concern
Defined in:
lib/web_console/controller_helpers.rb

Instance Method Summary collapse

Instance Method Details

#console(binding = nil) ⇒ Object

Helper for capturing a controller binding to prepare for console rendering.



17
18
19
# File 'lib/web_console/controller_helpers.rb', line 17

def console(binding = nil)
  @_console_binding = binding || ::Kernel.binding.of_caller(1)
end