Sha256: c838779991d19616353cc7b35c3810908e3904a849d66d9c411320841ae0e3c0
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
module Silvermoon module ActionControllerExtension extend ActiveSupport::Concern included do cattr_accessor :controller_notifiers end module ClassMethods def notifies(*what) self.controller_notifiers = what.to_a.compact end end module InstanceMethods def notify(title, content, url, extras = {}, notifiers = nil) Silvermoon.notify(title, content, url, extras, (notifiers || self.controller_notifiers) ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
silvermoon-0.1 | lib/silvermoon/action_controller_extension.rb |