Force commentaire order to avoid tests to fail randomly
This commit is contained in:
parent
df699336d9
commit
17ce3885fd
3 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ class Commentaire < ActiveRecord::Base
|
|||
|
||||
belongs_to :piece_justificative
|
||||
|
||||
scope :ordered, -> { order(created_at: :asc) }
|
||||
default_scope { order(created_at: :asc) }
|
||||
|
||||
after_create :notify
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue