diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-02-13 15:48:16 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-02-13 15:48:16 +0400 |
commit | 839957cf56acb905afc18605c0579d07083e0d37 (patch) | |
tree | 26d360e900fbd31548f269fa62bc504b419c1398 /lib | |
parent | b9f8b4019073fe60515bda8947d9040b4b73ea38 (diff) | |
download | gitlab-ce-839957cf56acb905afc18605c0579d07083e0d37.tar.gz |
Constants in Events looks good now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/event_filter.rb | 10 |
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 |