module HocNotifications::ActsAsHocNotificationsReceiver::ClassMethods

Public Instance Methods

acts_as_hoc_notifications_receiver(_options = {}) click to toggle source
# File lib/hoc_notifications/acts_as_hoc_notifications_receiver.rb, line 9
def acts_as_hoc_notifications_receiver(_options = {})
  has_many :received_notifications,
           as: :recipient,
           class_name: 'HocNotifications::HocNotification',
           dependent: :destroy
end