app/models/thredded/private_post.rb in thredded-0.6.2 vs app/models/thredded/private_post.rb in thredded-0.6.3

- old
+ new

@@ -18,18 +18,14 @@ after_commit :update_parent_last_user_and_timestamp, on: [:create, :destroy] after_commit :notify_users, on: [:create] # @param [Integer] per_page def page(per_page: self.class.default_per_page) - 1 + postable.posts.where(postable.posts.arel_table[:id].lt(id)).count / per_page + calculate_page(postable.posts, per_page) end def private_topic_post? true - end - - def user_detail - super || build_user_detail end # @return [ActiveRecord::Relation<Thredded.user_class>] users from the list of user names that can read this post. def readers_from_user_names(user_names) DbTextSearch::CaseInsensitive