2
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
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