Module: Wrangler::PublicControllerMethods

Defined in:
lib/wrangler.rb

Overview

methods to only be included into a controller if Wrangler is configured to handle exceptions for public reqeusts. (Conditionally included into controllers in the Wrangler::included() method).


Instance Method Summary collapse

Instance Method Details

#rescue_action_in_public(exception) ⇒ Object

override default behavior and let Wrangler handle the exception for public (non-local) requests.




48
49
50
51
# File 'lib/wrangler.rb', line 48

def rescue_action_in_public(exception)
  handle_exception(exception, :request => request,
                   :render_errors => true)
end