Use symbols instead of strings in for the order arg in scopes
This commit is contained in:
parent
8fb6a41386
commit
68da2ecbae
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Dossier < ActiveRecord::Base
|
|||
scope :waiting_for_user, -> { not_archived.state_waiting_for_user.order_by_updated_at(:asc) }
|
||||
scope :ouvert, -> { not_archived.state_ouvert.order_by_updated_at(:asc) }
|
||||
scope :a_instruire, -> { not_archived.state_a_instruire.order_by_updated_at(:asc) }
|
||||
scope :downloadable, -> { state_not_brouillon.order_by_updated_at("ASC") }
|
||||
scope :downloadable, -> { state_not_brouillon.order_by_updated_at(:asc) }
|
||||
|
||||
accepts_nested_attributes_for :individual
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue