Sha256: cf52c1be684cf817db7d512cd05eaf475642a2f0e8f22bf933482a4f6e54c5fd
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
module ActsAsNotifiableRedmine class Notifications @@channels = {} @@courier = nil class << self def register_courier(type, &block) @@courier = Couriers.factory(type, &block) end def register_channel(id, &block) @@channels[id] = Channel.new(id, &block) end def channels @@channels end def courier @@courier end def find_by_id(id) @@channels[id.to_sym] end def send_notification(channels, event, options) @@courier.send_notification(channels, event, options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_notifiable_redmine-0.1.1 | lib/acts_as_notifiable_redmine/notifications.rb |
acts_as_notifiable_redmine-0.1 | lib/acts_as_notifiable_redmine/notifications.rb |