app/models/concerns/thredded/topic_common.rb in thredded-0.15.4 vs app/models/concerns/thredded/topic_common.rb in thredded-0.15.5

- old
+ new

@@ -4,10 +4,10 @@ module TopicCommon extend ActiveSupport::Concern included do paginates_per Thredded.topics_per_page if respond_to?(:paginates_per) - belongs_to :last_user, + belongs_to :last_user, # rubocop:disable Rails/InverseOf class_name: Thredded.user_class_name, foreign_key: 'last_user_id', **(Thredded.rails_gte_51? ? { optional: true } : {}) scope :order_recently_posted_first, -> { order(last_post_at: :desc, id: :desc) }