Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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