app/models/notification_settings/subscription.rb in notification-settings-1.2.5 vs app/models/notification_settings/subscription.rb in notification-settings-1.2.6

- old
+ new

@@ -1,13 +1,15 @@ -class NotificationSettings::Subscription < ActiveRecord::Base - - self.table_name = 'notification_settings_subscriptions' - - include NotificationSettings::SubscriptionLibrary - - belongs_to :subscriber, polymorphic: true - belongs_to :subscribable, polymorphic: true - - has_many :notifications, class_name: '::Notification' - has_one :notification_setting, class_name: 'Setting' - -end +# frozen_string_literal: true + +module NotificationSettings + class Subscription < ActiveRecord::Base + self.table_name = 'notification_settings_subscriptions' + + include NotificationSettings::SubscriptionLibrary + + belongs_to :subscriber, polymorphic: true + belongs_to :subscribable, polymorphic: true + + has_many :notifications, class_name: '::Notification' + has_one :notification_setting, class_name: 'Setting' + end +end