[#3477] Accept symbol arguments to sanitized_column
This commit is contained in:
parent
f34e65c207
commit
e098779c5e
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ class ProcedurePresentation < ApplicationRecord
|
|||
end
|
||||
|
||||
def self.sanitized_column(table, column)
|
||||
[(table == 'self' ? 'dossier' : table).pluralize, column]
|
||||
[(table == 'self' ? 'dossier' : table.to_s).pluralize, column]
|
||||
.map { |name| ActiveRecord::Base.connection.quote_column_name(name) }
|
||||
.join('.')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue