Sha256: fb0b7ec0fc1bc0ba93fedcac7b2c1564517e143af30f2949120ee03709c5153b

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 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

                include NotificationSettings::Object if defined?(NotificationSettings)
                include NotificationSettings::Subscribable if defined?(NotificationSettings)
            end
        end

        module InstanceMethods

            # ...

        end

    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notification-handler-1.1.2 lib/notification_handler/object.rb
notification-handler-1.1.1 lib/notification_handler/object.rb
notification-handler-1.1.0 lib/notification_handler/object.rb
notification-handler-1.0.0 lib/notification_handler/object.rb
notification-handler-1.0.0.beta11 lib/notification_handler/object.rb