Method: Mushy::Flow#fluxs_for

Defined in:
lib/mushy/flow.rb

#fluxs_for(event) ⇒ Object



14
15
16
17
18
# File 'lib/mushy/flow.rb', line 14

def fluxs_for event
  fluxs
    .select { |x| x.parent_fluxs.any? { |y| y.id == event.flux_id } }
    .flatten
end