Sha256: 672cfc0cf3ccf93168b83890adf20d580eb5a11a22136885e9931ff9a0810eb3
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true module NotificationHandler module Object def self.included(base) base.extend(ClassMethods) end module ClassMethods def notification_object has_many :belonging_notifications, as: :object, class_name: 'Notification', dependent: :destroy include NotificationHandler::Object::InstanceMethods return unless defined?(NotificationSettings) include NotificationSettings::Subscribable end end module InstanceMethods # ... end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notification-handler-1.2.6 | lib/notification_handler/object.rb |