instance method
rescue_action_in_public!
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available 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