Add by_latest_used
scope, move admin area recent IPs to partial (#29497)
This commit is contained in:
parent
c70c39cad0
commit
f56309f5f0
3 changed files with 8 additions and 7 deletions
|
@ -15,4 +15,6 @@ class UserIp < ApplicationRecord
|
|||
self.primary_key = :user_id
|
||||
|
||||
belongs_to :user
|
||||
|
||||
scope :by_latest_used, -> { order(used_at: :desc) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue