mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 00:56:01 +08:00
FIX: Histories should be reverse chronological
This commit is contained in:
@ -30,7 +30,7 @@ class Reviewable < ActiveRecord::Base
|
||||
belongs_to :category
|
||||
|
||||
has_many :reviewable_histories
|
||||
has_many :reviewable_scores
|
||||
has_many :reviewable_scores, -> { order(created_at: :desc) }
|
||||
|
||||
after_create do
|
||||
log_history(:created, created_by)
|
||||
|
Reference in New Issue
Block a user