Actually properly track saved changes within the User model
This commit is contained in:
parent
dd2b229761
commit
11785c665e
1 changed files with 1 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ class UserDisabled < StandardError
|
|||
end
|
||||
|
||||
class User < ApplicationRecord
|
||||
include TrackSavedChanges
|
||||
rolify
|
||||
# prevent N+1 queries with has_cached_role? by preloading roles *always*
|
||||
default_scope { preload(:roles) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue