Created
February 26, 2020 22:39
-
-
Save wshihadeh/26a799f171c8e5ec30ee0368d9a5d179 to your computer and use it in GitHub Desktop.
Application Controller
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
def append_info_to_payload(payload) | |
super | |
payload[:host] = request.host | |
payload[:remote_ip] = request.remote_ip | |
payload[:ip] = request.ip | |
payload[:x_forwarded_for] = request.env['HTTP_X_FORWARDED_FOR'] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment