Sha256: 620330887497a945285afb9215925cc0107dea3a2057ae5213297f6c5c8091ca
Contents?: true
Size: 691 Bytes
Versions: 10
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true module Thredded class NotificationsForPrivateTopics < ActiveRecord::Base belongs_to :user, class_name: Thredded.user_class, inverse_of: :thredded_notifications_for_private_topics belongs_to :user_preference, primary_key: :user_id, foreign_key: :user_id, inverse_of: :notifications_for_private_topics validates :user_id, presence: true include Thredded::NotifierPreference def self.default(_notifier) # could be moved to `notifier.defaults(:notifications_for_private_topics)` Thredded::BaseNotifier::NotificationsDefault.new(true) end end end
Version data entries
10 entries across 10 versions & 1 rubygems