Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
robinboening committed Jan 23, 2025
1 parent 367d603 commit 1df867d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/alchemy/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def enum_values_collection_for_select(column_name)
def sorted_attributes
@_sorted_attributes ||= attributes.sort_by! do |attr|
[
attr[:name] == "name" ? 0 : 1,
attr[:name] == "updated_at" ? 3 : 2,
attr[:type] == :boolean ? 2 : 1,
(attr[:name] == "name") ? 0 : 1,
(attr[:name] == "updated_at") ? 3 : 2,
(attr[:type] == :boolean) ? 2 : 1,
attr[:name]
]
end
Expand Down

0 comments on commit 1df867d

Please sign in to comment.