Skip to content

Commit

Permalink
Address linter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtbot-summer committed Aug 18, 2023
1 parent 152fbf0 commit ceacb04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/administrate/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def order_by_association_id_query
end

def order_by_attribute_query
Arel::Table.new(association_table_name)[association_attribute]
.public_send(direction)
Arel::Table.new(association_table_name)[association_attribute].public_send(direction)
end

def relation_type(relation)
Expand Down

0 comments on commit ceacb04

Please sign in to comment.