Sha256: 2ae277d885d672c2f10c5d9c20c9d22d4dd9b003ae8b20636dbb77222a050da2

Contents?: true

Size: 595 Bytes

Versions: 6

Compression:

Stored size: 595 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::Subscribable if defined?(NotificationSettings)
            end
        end

        module InstanceMethods

            # ...

        end

    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
notification-handler-1.2.5 lib/notification_handler/object.rb
notification-handler-1.2.4 lib/notification_handler/object.rb
notification-handler-1.2.3 lib/notification_handler/object.rb
notification-handler-1.2.2 lib/notification_handler/object.rb
notification-handler-1.2.1 lib/notification_handler/object.rb
notification-handler-1.2.0 lib/notification_handler/object.rb