Module: Ephemeron::Logger::Finders

Defined in:
lib/ephemeron/logger/finders.rb

Class Method Summary collapse

Class Method Details

.find_all_events_for(model, *events) ⇒ Object



8
9
10
11
# File 'lib/ephemeron/logger/finders.rb', line 8

def find_all_events_for(model, *events)
  Logger.logs
        .filter { |l| events.any? { |e| l == Logger::Convert.call(model, e) } }
end