Skip to content

Commit

Permalink
Fix lint ShadowingOuterLocalVariable
Browse files Browse the repository at this point in the history
Revert "Fix lint `ShadowingOuterLocalVariable`"

This reverts commit 38bd45a48992b500478a82d56d31468a322937a8.

Change of variable name

Fix lint `ShadowingOuterLocalVariable`
  • Loading branch information
soartec-lab committed Feb 21, 2019
1 parent 2420c44 commit 0fecd26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/lib/active_record/relation/query_methods.rb
Expand Up @@ -1157,9 +1157,9 @@ def preprocess_order_args(order_args)
order_args.map! do |arg|
case arg
when Symbol
field = arg.to_s
arel_column(field) {
Arel.sql(connection.quote_table_name(field))
arg = arg.to_s
arel_column(arg) {
Arel.sql(connection.quote_table_name(arg))
}.asc
when Hash
arg.map { |field, dir|
Expand Down

0 comments on commit 0fecd26

Please sign in to comment.