class Takwimu::Notifications::Base
Public Class Methods
callback()
click to toggle source
# File lib/takwimu/notifications/base.rb, line 14 def self.callback raise "#handle not implemented" end
subscribe!()
click to toggle source
# File lib/takwimu/notifications/base.rb, line 8 def self.subscribe! subscription = ActiveSupport::Notifications.subscribe(event_name, &method(:callback)) subscription end