Created
May 24, 2013 20:44
-
-
Save autarch/5646392 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sub _build_requested_ip_address { | |
my $self = shift; | |
my $ip = bind_path( '/:ip_address', $self->request()->path_info() ); | |
return ( $ip && $ip eq 'me' ) ? $self->request->address : $ip; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment