Skip to content

Commit 0672e28

Browse files
authored
Merge pull request #1182 from hatchloyalty/pr-raw-string-to-pluck
Wrap raw string passed to pluck
2 parents d195af9 + e8a82d0 commit 0672e28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ def pluck_arel_attributes(relation, *attrs)
12561256
quoted_attrs = attrs.map do |attr|
12571257
quoted_table = conn.quote_table_name(attr.relation.table_alias || attr.relation.name)
12581258
quoted_column = conn.quote_column_name(attr.name)
1259-
"#{quoted_table}.#{quoted_column}"
1259+
Arel.sql("#{quoted_table}.#{quoted_column}")
12601260
end
12611261
relation.pluck(*quoted_attrs)
12621262
end

0 commit comments

Comments
 (0)