instance method rescue_action_in_public!

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.1.12

Available in: v3.0.20 v3.1.12

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 436
      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 436 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::TestCase::Behavior

Type at least 2 characters to search.

↑↓ navigate · open · esc close