diff options
author | Régis Freyd (GitLab) <regis@gitlab.com> | 2016-09-06 14:06:16 +0000 |
---|---|---|
committer | Régis Freyd (GitLab) <regis@gitlab.com> | 2016-09-06 14:06:16 +0000 |
commit | b44636c259e7a655a60cc2b98431d6d00a73e002 (patch) | |
tree | 93545ea821319c23410a444f676c8e5a66daeecf /app/helpers/sentry_helper.rb | |
parent | 310beb9002f1bbdd07abe5bba6712769773a99b2 (diff) | |
parent | e9e8c67fb7d58288dbac1777b63ea7d3128d6268 (diff) | |
download | gitlab-ce-email-in-slash-commands.tar.gz |
Merge branch 'master' into 'email-in-slash-commands'email-in-slash-commands
# Conflicts:
# doc/user/project/slash_commands.md
# doc/workflow/README.md
Diffstat (limited to 'app/helpers/sentry_helper.rb')
-rw-r--r-- | app/helpers/sentry_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/sentry_helper.rb b/app/helpers/sentry_helper.rb new file mode 100644 index 00000000000..3d255df66a0 --- /dev/null +++ b/app/helpers/sentry_helper.rb @@ -0,0 +1,9 @@ +module SentryHelper + def sentry_enabled? + Gitlab::Sentry.enabled? + end + + def sentry_context + Gitlab::Sentry.context(current_user) + end +end |