Skip to content

Commit

Permalink
remove sorting from default web scope
Browse files Browse the repository at this point in the history
  • Loading branch information
amshkv committed Aug 15, 2024
1 parent 986a21d commit 16ea6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/repositories/user_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module UserRepository

included do
scope :ordered, -> { order(id: :desc) }
scope :web, -> { ordered.permitted }
scope :web, -> { permitted }
scope :with_career_members, lambda {
joins(:career_members)
.where('EXISTS (:career_member)',
Expand Down

0 comments on commit 16ea6b8

Please sign in to comment.