Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-16 16:28:04 +0300
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-16 16:28:04 +0300
commitffd2416c5636917c0da0a3376342d6c465bb1954 (patch)
tree6b39f3968b0b4cba8c98cd627db50bb3ece78ce7 /app/controllers/help_controller.rb
parent737087f7e55d8cd981a8f7d19c7cfc0742044d57 (diff)
Make a user available for the user variable
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