summaryrefslogtreecommitdiff
path: root/app/serializers/user_preference_entity.rb
diff options
context:
space:
mode:
authorFelipe Artur <fcardozo@gitlab.com>2018-11-05 12:30:14 +0000
committerPhil Hughes <me@iamphill.com>2018-11-05 12:30:14 +0000
commitb4d005eb7b4a51e8cf6b11e6aea3d0c264e4abfd (patch)
tree2d073cb044761fce0a08ca375b195e12836c985b /app/serializers/user_preference_entity.rb
parent90473e064eac21be283e751005e0c7abbdbf9089 (diff)
downloadgitlab-ce-b4d005eb7b4a51e8cf6b11e6aea3d0c264e4abfd.tar.gz
Add 'only history' option to notes filter
Diffstat (limited to 'app/serializers/user_preference_entity.rb')
-rw-r--r--app/serializers/user_preference_entity.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/user_preference_entity.rb b/app/serializers/user_preference_entity.rb
index fbdaab459b3..b99f80424db 100644
--- a/app/serializers/user_preference_entity.rb
+++ b/app/serializers/user_preference_entity.rb
@@ -7,4 +7,8 @@ class UserPreferenceEntity < Grape::Entity
expose :notes_filters do |user_preference|
UserPreference.notes_filters
end
+
+ expose :default_notes_filter do |user_preference|
+ UserPreference::NOTES_FILTERS[:all_notes]
+ end
end