Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
849a87f
commit c7774ab
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
module Devise | ||
module Models | ||
module Authenticatable | ||
BLACKLIST_FOR_SERIALIZATION.concat %i[ | ||
list = %i[ | ||
invitation_token invitation_created_at invitation_sent_at | ||
invitation_accepted_at invitation_limit invited_by_type | ||
invited_by_id invitations_count | ||
] | ||
|
||
if defined?(UNSAFE_ATTRIBUTES_FOR_SERIALIZATION) | ||
UNSAFE_ATTRIBUTES_FOR_SERIALIZATION.concat(list) | ||
else | ||
BLACKLIST_FOR_SERIALIZATION.concat(list) | ||
end | ||
end | ||
end | ||
end |