Created
December 16, 2008 02:58
-
-
Save ahoward/36240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
def local_request? #:doc: | |
request.remote_addr == LOCALHOST && request.remote_ip == LOCALHOST | |
end | |
LOCALHOST = '127.0.0.1'.freeze |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment