fix order services
This commit is contained in:
parent
26018be459
commit
8909e553ed
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module Administrateurs
|
|||
skip_before_action :alert_for_missing_service, only: :edit
|
||||
def index
|
||||
@procedure = procedure
|
||||
@services = services.ordered.sort_by { |service| service == procedure.service ? 0 : 1 }
|
||||
@services = ([procedure.service].compact + services.ordered).uniq
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
Loading…
Reference in a new issue