Satisfy Rubocop.
This commit is contained in:
parent
2456695422
commit
0db79443ee
|
@ -27,16 +27,17 @@ module Participable
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def participants_for(value, current_user = nil)
|
|
||||||
case value
|
def participants_for(value, current_user = nil)
|
||||||
when User
|
case value
|
||||||
[value]
|
when User
|
||||||
when Array
|
[value]
|
||||||
value.flat_map { |v| participants_for(v, current_user) }
|
when Array
|
||||||
when Participable
|
value.flat_map { |v| participants_for(v, current_user) }
|
||||||
value.participants(current_user)
|
when Participable
|
||||||
when Mentionable
|
value.participants(current_user)
|
||||||
value.mentioned_users(current_user)
|
when Mentionable
|
||||||
end
|
value.mentioned_users(current_user)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue