Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Dec 1, 2024
1 parent f3449b6 commit a0457b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mobility/plugins/active_record/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def order(opts, *rest)
base = keys.each_with_index.inject(self) do |query, (key, index)|
next query unless klass.mobility_attribute?(key)
keys[index] = backend_node(key)
if method_name == "select" && query.order_values.any?
if method_name == "select"
keys[index] = keys[index]
.as(::Mobility::Plugins::ActiveRecord::Query.attribute_alias(key.to_s))
end
Expand Down

0 comments on commit a0457b9

Please sign in to comment.