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:
Diffstat (limited to 'lib/event_filter.rb')
-rw-r--r--lib/event_filter.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/event_filter.rb b/lib/event_filter.rb
index 14ab0193bf1..9b4b8c3801a 100644
--- a/lib/event_filter.rb
+++ b/lib/event_filter.rb
@@ -37,15 +37,15 @@ class EventFilter
filter = params.dup
actions = []
- actions << Event::Pushed if filter.include? 'push'
- actions << Event::Merged if filter.include? 'merged'
+ actions << Event::PUSHED if filter.include? 'push'
+ actions << Event::MERGED if filter.include? 'merged'
if filter.include? 'team'
- actions << Event::Joined
- actions << Event::Left
+ actions << Event::JOINED
+ actions << Event::LEFT
end
- actions << Event::Commented if filter.include? 'comments'
+ actions << Event::COMMENTED if filter.include? 'comments'
events = events.where(action: actions)
end