feat: Use order_by_name as default sort order for inbox/user (#1160)
This commit is contained in:
@@ -81,6 +81,8 @@ class User < ApplicationRecord
|
||||
after_create :create_access_token
|
||||
after_save :update_presence_in_redis, if: :saved_change_to_availability?
|
||||
|
||||
scope :order_by_full_name, -> { order('lower(name) ASC') }
|
||||
|
||||
def send_devise_notification(notification, *args)
|
||||
devise_mailer.send(notification, self, *args).deliver_later
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user