app/models/thredded/user_post_notification.rb in thredded-0.12.1 vs app/models/thredded/user_post_notification.rb in thredded-0.12.2

- old
+ new

@@ -1,9 +1,10 @@ # frozen_string_literal: true + module Thredded # Delivery records for Thredded::Post notifications. class UserPostNotification < ActiveRecord::Base - belongs_to :user, class_name: Thredded.user_class, inverse_of: :thredded_post_notifications + belongs_to :user, class_name: Thredded.user_class_name, inverse_of: :thredded_post_notifications belongs_to :post, class_name: 'Thredded::Post', inverse_of: :user_notifications # @param post [Thredded::Post] # @return [Array<Integer>] The IDs of users who were already notified about the given post. def self.notified_user_ids(post)