module HocNotifications::ActsAsHocNotificationsSender::ClassMethods

Public Instance Methods

acts_as_hoc_notifications_sender(_options = {}) click to toggle source
# File lib/hoc_notifications/acts_as_hoc_notifications_sender.rb, line 10
def acts_as_hoc_notifications_sender(_options = {})
  has_many :sent_notifications,
           as: :sender,
           class_name: 'HocNotifications::HocNotification',
           dependent: :destroy
end