Skip to content

Commit c7540f8

Browse files
authored
Update active_relation_resource.rb
Implementing fix from issue JSONAPI-Resources#1369. https://github.com/cerebris/jsonapi-resources/pull/1395
1 parent a3a2a7a commit c7540f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/active_relation_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ def alias_table_field(table, field, quoted = false)
847847
end
848848

849849
def quote(field)
850-
"\"#{field.to_s}\""
850+
ActiveRecord::Base.connection.quote_table_name(field)
851851
end
852852

853853
def apply_filters(records, filters, options = {})

0 commit comments

Comments
 (0)