Sha256: c88f70222bc0cd06073e16a5a5fdfbfc8bd824d6a7ec2094f89a7d64b8928b78

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

module ActivityNotification
  module Notifier
    extend ActiveSupport::Concern
    included do
      include Common
      has_many :sent_notifications,
        class_name: "::ActivityNotification::Notification",
        as: :notifier
    end

    class_methods do
      # Checks if the model includes notifier and notifier methods are available.
      # @return [Boolean] Always true
      def available_as_notifier?
        true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activity_notification-0.0.10 lib/activity_notification/models/concerns/notifier.rb