Skip to content

Commit

Permalink
Remove sort as it is no longer needed
Browse files Browse the repository at this point in the history
1. Tests pass
2. All remaining consumers act on the entire set using #each, #any, etc.
  • Loading branch information
vrajmohan committed Dec 27, 2024
1 parent 8367d33 commit 9b6c45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class User < ApplicationRecord
attr_accessor :asserted_attributes, :email

def confirmed_email_addresses
email_addresses.confirmed.order('last_sign_in_at DESC NULLS LAST')
email_addresses.confirmed
end

def fully_registered?
Expand Down

0 comments on commit 9b6c45e

Please sign in to comment.