[#3477] Slightly more compact
This commit is contained in:
parent
e8747f7c38
commit
b4790e5009
1 changed files with 1 additions and 2 deletions
|
@ -184,8 +184,7 @@ class ProcedurePresentation < ApplicationRecord
|
|||
end
|
||||
|
||||
def check_allowed_field(kind, field, extra_columns = {})
|
||||
table = field['table']
|
||||
column = field['column']
|
||||
table, column = field.values_at('table', 'column')
|
||||
if !valid_column?(table, column, extra_columns)
|
||||
errors.add(kind, "#{table}.#{column} n’est pas une colonne permise")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue