summaryrefslogtreecommitdiff
path: root/lib/event_filter.rb
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-26 00:07:40 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-03 09:18:46 +0200
commit2e9f5de86896e53e9cf34aef52bbc2ad08019a21 (patch)
tree48c469b4e8a9f4596f978a2602e4d3b5cfbece86 /lib/event_filter.rb
parenta3d90c5045ae322a013484165cdebcd764dc5d69 (diff)
downloadgitlab-ce-2e9f5de86896e53e9cf34aef52bbc2ad08019a21.tar.gz
Add parenthesis to function def with arguments.
Diffstat (limited to 'lib/event_filter.rb')
-rw-r--r--lib/event_filter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/event_filter.rb b/lib/event_filter.rb
index 9b4b8c3801a..163937c02cf 100644
--- a/lib/event_filter.rb
+++ b/lib/event_filter.rb
@@ -23,7 +23,7 @@ class EventFilter
end
end
- def initialize params
+ def initialize(params)
@params = if params
params.dup
else
@@ -31,7 +31,7 @@ class EventFilter
end
end
- def apply_filter events
+ def apply_filter(events)
return events unless params.present?
filter = params.dup
@@ -50,7 +50,7 @@ class EventFilter
events = events.where(action: actions)
end
- def options key
+ def options(key)
filter = params.dup
if filter.include? key
@@ -62,7 +62,7 @@ class EventFilter
filter
end
- def active? key
+ def active?(key)
params.include? key
end
end