Skip to content

Commit 61104c3

Browse files
committed
Revert "Merge pull request rails#53095 from fatkodima/fix-resolving-non-existing-sqlite-column"
This reverts commit 01e7c17, reversing changes made to ba468db.
1 parent 3a91c80 commit 61104c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,9 +2234,7 @@ def arel_column_aliases_from_hash(fields)
22342234
arel_column_with_table(table_name, column.to_s)
22352235
end
22362236
when String, Symbol
2237-
arel_column(key) do
2238-
predicate_builder.resolve_arel_attribute(model.table_name, key)
2239-
end.as(columns_aliases.to_s)
2237+
arel_column(key).as(columns_aliases.to_s)
22402238
end
22412239
end
22422240
end

0 commit comments

Comments
 (0)