Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devise deprecations #842

Merged
merged 1 commit into from Feb 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/devise_invitable/models/authenticatable.rb
@@ -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