install mailkick gem
this gem is used to allow users to unsubscribe from the invitation email
This commit is contained in:
parent
9cc74e051c
commit
f1386c30a7
5 changed files with 35 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ end
|
|||
|
||||
class User < ApplicationRecord
|
||||
rolify
|
||||
mailkick_user
|
||||
# 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