instance method rescue_action_in_public!

Ruby on Rails 2.3.18

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

rescue_action_in_public!()

Cause the action to be rescued according to the regular rules for rescue_action when the visitor is not local

Source
# File actionpack/lib/action_controller/test_case.rb, line 205
    def rescue_action_in_public!
      @request.remote_addr = '208.77.188.166' # example.com
    end

Defined in actionpack/lib/action_controller/test_case.rb line 205 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::TestCase

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close