Skip to content

Commit

Permalink
Devise deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu authored and scambra committed Feb 3, 2021
1 parent 849a87f commit c7774ab
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit c7774ab

Please sign in to comment.