lib/notification_pusher/configuration.rb in notification-pusher-1.0.0.beta10 vs lib/notification_pusher/configuration.rb in notification-pusher-1.0.0.beta11

- old
+ new

@@ -9,11 +9,17 @@ yield configuration end class Configuration + attr_accessor :pushers + + def initialize + @pushers = [] + end + def define_pusher name, options = {} - ::NotificationPusher::Pusher.new name, options + self.pushers << ::NotificationPusher::Pusher.new(name, options) end end end