lib/provider/provider_base.rb in unotifier-0.2.10 vs lib/provider/provider_base.rb in unotifier-0.3.0

- old
+ new

@@ -3,12 +3,13 @@ class ProviderBase def initialize(notification_conditions: []) @notification_conditions = notification_conditions end - def can_notify?(target) + def can_notify?(notification) return true if @notification_conditions.empty? - @notification_conditions.all? { |c| c.call(target) } + + @notification_conditions.all? { |c| c.call(notification) } end end end end