Skip to content

Commit

Permalink
Sort developer specialties admin view by num. devs
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed Apr 16, 2024
1 parent 0aa8cd3 commit 0b56e41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/admin/specialties_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module Admin
class SpecialtiesController < ApplicationController
def index
@specialties = Specialty.includes(developers: :user).visible
@specialties = Specialty.includes(developers: :user)
.order(developers_count: :desc).visible
end

def new
Expand Down

0 comments on commit 0b56e41

Please sign in to comment.