0
0
Fork 0

Add by_latest_used scope, move admin area recent IPs to partial (#29497)

This commit is contained in:
Matt Jankowski 2024-04-02 09:51:34 -04:00 committed by GitHub
parent c70c39cad0
commit f56309f5f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

View file

@ -15,4 +15,6 @@ class UserIp < ApplicationRecord
self.primary_key = :user_id
belongs_to :user
scope :by_latest_used, -> { order(used_at: :desc) }
end