Created
March 9, 2017 15:26
-
-
Save uday-rayala/63c41718e9954b1dd44520ac6a9c3345 to your computer and use it in GitHub Desktop.
LogrageHttpResponseAppender
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
module LogrageHttpResponseAppender | |
def append_info_to_payload(payload) | |
super | |
payload[:experiments] = RequestStore.store[:experiments] if RequestStore.store[:experiments] | |
end | |
end | |
class ApplicationController < ActionController::API | |
include LogrageHttpResponseAppender | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment