Skip to content

Instantly share code, notes, and snippets.

@spacecowb0y
Last active August 29, 2015 14:05
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 spacecowb0y/f94ef0e059f2909eea5a to your computer and use it in GitHub Desktop.
Save spacecowb0y/f94ef0e059f2909eea5a to your computer and use it in GitHub Desktop.
class ApplicationController < ActionController::Base
before_action :set_raven_context
def set_raven_context
Raven.user_context({ user_id: current_user.id, email: current_user.email }) unless current_user.blank?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment