Improve a comment
This commit is contained in:
parent
9764a0af8d
commit
6320bfffbf
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class TypesDeChampService
|
||||||
|
|
||||||
def self.order_champs(params, attributes)
|
def self.order_champs(params, attributes)
|
||||||
# It's OK to use an unsafe hash here because the params will then go through
|
# It's OK to use an unsafe hash here because the params will then go through
|
||||||
# require / permit methods in the method before this one
|
# require / permit methods in #create_update_procedure_params
|
||||||
tdcas = params[:procedure][attributes].to_unsafe_hash.to_a
|
tdcas = params[:procedure][attributes].to_unsafe_hash.to_a
|
||||||
.map { |_hash_index, tdca| tdca }
|
.map { |_hash_index, tdca| tdca }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue