app/models/concerns/thredded/topic_common.rb in thredded-0.5.0 vs app/models/concerns/thredded/topic_common.rb in thredded-0.5.1

- old
+ new

@@ -8,10 +8,10 @@ belongs_to :last_user, class_name: Thredded.user_class, foreign_key: 'last_user_id' scope :order_recently_updated_first, -> { order(updated_at: :desc, id: :desc) } - scope :on_page, -> page_num { page(page_num).per(30) } + scope :on_page, -> (page_num) { page(page_num).per(30) } validates :hash_id, presence: true, uniqueness: true validates :last_user_id, presence: true validates :posts_count, numericality: true