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
<code/>and<pre/>for code samples.