Sha256: 93d0e30a44c79e41d375400b1455fddbd41fc8e5f0a812a1469205608a1798bf

Contents?: true

Size: 513 Bytes

Versions: 11

Compression:

Stored size: 513 Bytes

Contents

require 'active_support'

module NotificationSettings
    module SubscriptionLibrary

        extend ActiveSupport::Concern

        included do
            after_create_commit :create_notification_setting

            include NotificationSettings::SubscriptionLibrary::InstanceMethods
        end

        module InstanceMethods

            private

            def create_notification_setting
                self.notification_setting.create!
            end

        end

    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
notification-settings-1.2.5 lib/notification_settings/subscription_library.rb
notification-settings-1.2.4 lib/notification_settings/subscription_library.rb
notification-settings-1.2.3 lib/notification_settings/subscription_library.rb
notification-settings-1.2.2 lib/notification_settings/subscription_library.rb
notification-settings-1.2.1 lib/notification_settings/subscription_library.rb
notification-settings-1.2.0 lib/notification_settings/subscription_library.rb
notification-settings-1.1.2 lib/notification_settings/subscription_library.rb
notification-settings-1.1.1 lib/notification_settings/subscription_library.rb
notification-settings-1.1.0 lib/notification_settings/subscription_library.rb
notification-settings-1.0.0 lib/notification_settings/subscription_library.rb
notification-settings-1.0.0.beta11 lib/notification_settings/subscription_library.rb