Skip to content

Commit

Permalink
add request ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaldrip committed Dec 29, 2014
1 parent 8718d82 commit da41f50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/flatrack/view/request_helper.rb
Expand Up @@ -13,6 +13,12 @@ def params
def path
@response.request.path
end
# Returns the IP address for the request
# @return [String]
def request_ip
@response.request.env['REMOTE_ADDR']
end

# Returns the cookies
# @return [Hash]
def cookies
Expand Down

0 comments on commit da41f50

Please sign in to comment.