Sha256: 280199ae8d52d09281f9e5134696cc4963ec44acaa2900b4a477ca2a4f20f0f9
Contents?: true
Size: 879 Bytes
Versions: 20
Compression:
Stored size: 879 Bytes
Contents
require 'active_support/notifications' require 'singleton' module Praxis module Notifications include Praxis::PluginConcern class Plugin < Praxis::Plugin include Singleton def config_key :notifications # 'praxis.notifications' end end def self.publish(name, *args) ActiveSupport::Notifications.publish(name, *args) end def self.instrument(name, payload = {}, &block) ActiveSupport::Notifications.instrument(name, payload, &block) end def self.subscribe(*args, &block) ActiveSupport::Notifications.subscribe(*args, &block) end def self.subscribed(callback, *args, &block) ActiveSupport::Notifications.subscribed(callback, *args, &block) end def self.unsubscribe(subscriber_or_name) ActiveSupport::Notifications.unsubscribe(subscriber_or_name) end end end
Version data entries
20 entries across 20 versions & 1 rubygems