Sha256: 3fca4ca347aab48521d6ea069d8f256f5e89df8c4f89e2774ff2075e64df8e77
Contents?: true
Size: 335 Bytes
Versions: 11
Compression:
Stored size: 335 Bytes
Contents
class ComplianceAlertCollection def initialize(criteria, apps, users) @criteria = criteria @apps = apps @users = users end def all context = { users: @users, apps: @apps } @criteria.map do |criterion| CriterionAlertDecorator.decorate(criterion, context: context).alerts || [] end.flatten end end
Version data entries
11 entries across 11 versions & 1 rubygems