nicer find_field
This commit is contained in:
parent
e5da1d7111
commit
f37c27a243
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ class ProcedurePresentation < ApplicationRecord
|
|||
end
|
||||
|
||||
def find_field(table, column)
|
||||
fields.find { |c| c['table'] == table && c['column'] == column }
|
||||
fields.find { |field| field.values_at('table', 'column') == [table, column] }
|
||||
end
|
||||
|
||||
def check_allowed_displayed_fields
|
||||
|
|
Loading…
Reference in a new issue