Skip to content

Instantly share code, notes, and snippets.

@hoshinaoshi
Created March 4, 2014 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoshinaoshi/9347978 to your computer and use it in GitHub Desktop.
Save hoshinaoshi/9347978 to your computer and use it in GitHub Desktop.
def gon
if wrong_gon_request?
gon_request = Request.new(env)
gon_request.id = request.uuid
Thread.current['gon'] = gon_request
end
Gon
end
@hoshinaoshi
Copy link
Author

gon / lib / gon / helpers.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment