Created
July 9, 2020 13:13
-
-
Save tasdikrahman/36a2223cdafbe5ed5582c439ec575697 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
class ApplicationController < ActionController::Base | |
protect_from_forgery with: exception | |
def append_info_to_payload(payload) | |
super | |
payload[:host] = request.host | |
payload[:remote_ip] = request.remote_ip | |
payload[:ip] = request.ip | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment