summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-17 19:16:04 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-17 19:16:04 +0200
commit6f0856535e242694805909b824e9e238372e3f65 (patch)
tree5a770cbbd78df17969110e1539f0a21b320710fa /app/helpers
parentcfa3602a1303c39e78d5bf23ad0ab34b1966d397 (diff)
downloadgitlab-ce-6f0856535e242694805909b824e9e238372e3f65.tar.gz
Remove redundant helper method.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/preferences_helper.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb
index 5a49ab8195c..c73cb3028ee 100644
--- a/app/helpers/preferences_helper.rb
+++ b/app/helpers/preferences_helper.rb
@@ -47,13 +47,7 @@ module PreferencesHelper
Gitlab::ColorSchemes.for_user(current_user).css_class
end
- def prefer_readme?
- !current_user ||
- current_user.project_view == 'readme'
- end
-
- def current_user_default_project_view
- (current_user && current_user.project_view) ||
- 'readme'
+ def default_project_view
+ current_user ? current_user.project_view : 'readme'
end
end