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