Sha256: c059f6eb0cba15ce34ceb3ec76360f41b2f59058d4dcc8dd10c16b8d4af96047

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

module NotificationRenderer
    module NotificationLibrary

        extend ActiveSupport::Concern

        included do
            include NotificationRenderer::NotificationLibrary::InstanceMethods
        end

        module InstanceMethods

            def self.grouping group_by
                group_by{ |notification| notification.send(group_by) }
            end

            def type
                self[:type] || NotificationRenderer.configuration.default_type
            end

        end

    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notification-renderer-1.0.0.beta10 lib/notification_renderer/notification_library.rb
notification-renderer-1.0.0.beta9 lib/notification_renderer/notification_library.rb