protected Method

Rescue.local_request?(

True if the request came from localhost, 127.0.0.1. Override this method if you wish to redefine the meaning of a local request to include remote IP addresses or other criteria.

Source Code

# File action_controller/rescue.rb, line 167
def local_request? #:doc:
  request.remote_addr == LOCALHOST and request.remote_ip == LOCALHOST
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.