Remove default_scope
from Admin::ActionLog
(#28026)
This commit is contained in:
parent
291dc04e67
commit
e48ecd2929
6 changed files with 20 additions and 16 deletions
|
@ -24,12 +24,12 @@ class Admin::ActionLog < ApplicationRecord
|
|||
belongs_to :account
|
||||
belongs_to :target, polymorphic: true, optional: true
|
||||
|
||||
default_scope -> { order('id desc') }
|
||||
|
||||
before_validation :set_human_identifier
|
||||
before_validation :set_route_param
|
||||
before_validation :set_permalink
|
||||
|
||||
scope :latest, -> { order(id: :desc) }
|
||||
|
||||
def action
|
||||
super.to_sym
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue