Sha256: 2079a62a1e61cfae48194b4039d35c8bc10a22f17faf5c35f00f219a369c396f

Contents?: true

Size: 697 Bytes

Versions: 4

Compression:

Stored size: 697 Bytes

Contents

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
                
                extend NotificationSettings::Object if defined?(NotificationSettings)
                extend NotificationSettings::Subscribable if defined?(NotificationSettings)
            end
        end

        module InstanceMethods

            # ...

        end

    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
notification-handler-1.0.0.beta10 lib/notification_handler/object.rb
notification-handler-1.0.0.beta9 lib/notification_handler/object.rb
notification-handler-1.0.0.beta8 lib/notification_handler/object.rb
notification-handler-1.0.0.beta7 lib/notification_handler/object.rb