summaryrefslogtreecommitdiff
path: root/app/controllers/help_controller.rb
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-16 09:28:04 -0400
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-16 09:28:04 -0400
commitffd2416c5636917c0da0a3376342d6c465bb1954 (patch)
tree6b39f3968b0b4cba8c98cd627db50bb3ece78ce7 /app/controllers/help_controller.rb
parent737087f7e55d8cd981a8f7d19c7cfc0742044d57 (diff)
downloadgitlab-ce-ffd2416c5636917c0da0a3376342d6c465bb1954.tar.gz
Make a user available for the user variablefivehundred_on_ui_help
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r--app/controllers/help_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 55050615473..406142f29c7 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -51,6 +51,12 @@ class HelpController < ApplicationController
end
def ui
+ # this will work on gitlab.com
+ @some_user = User.find_by(username: 'dzaporozhets')
+ if @some_user.nil?
+ # this will work in dev
+ @some_user = User.find(1)
+ end
end
private