Commit 0db79443 authored by Douwe Maan's avatar Douwe Maan

Satisfy Rubocop.

parent 24566954
......@@ -27,16 +27,17 @@ module Participable
end
private
def participants_for(value, current_user = nil)
case value
when User
[value]
when Array
value.flat_map { |v| participants_for(v, current_user) }
when Participable
value.participants(current_user)
when Mentionable
value.mentioned_users(current_user)
end
def participants_for(value, current_user = nil)
case value
when User
[value]
when Array
value.flat_map { |v| participants_for(v, current_user) }
when Participable
value.participants(current_user)
when Mentionable
value.mentioned_users(current_user)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment