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

- old
+ new

@@ -1,10 +1,11 @@ # frozen_string_literal: true + module Thredded class UserDetail < ActiveRecord::Base include Thredded::ModerationState - belongs_to :user, class_name: Thredded.user_class, inverse_of: :thredded_user_detail + belongs_to :user, class_name: Thredded.user_class_name, inverse_of: :thredded_user_detail validates :user_id, presence: true, uniqueness: true has_many :topics, class_name: 'Thredded::Topic', foreign_key: :user_id, primary_key: :user_id has_many :private_topics, class_name: 'Thredded::PrivateTopic', foreign_key: :user_id, primary_key: :user_id has_many :posts, class_name: 'Thredded::Post', foreign_key: :user_id, primary_key: :user_id