Skip to content

Instantly share code, notes, and snippets.

@uday-rayala
Created March 9, 2017 15:26
Show Gist options
  • Save uday-rayala/63c41718e9954b1dd44520ac6a9c3345 to your computer and use it in GitHub Desktop.
Save uday-rayala/63c41718e9954b1dd44520ac6a9c3345 to your computer and use it in GitHub Desktop.
LogrageHttpResponseAppender
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