Sha256: a5d532c5157710e2a545426d748c6342a1de8fa02939863c0a96cf60f2315e91
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
module DeviseInvitable module ParameterSanitizer def invite default_params.permit self.for(:invite) end def accept_invitation default_params.permit self.for(:accept_invitation) end def self.included(base) base.alias_method_chain :attributes_for, :invitable end private def attributes_for_with_invitable(kind) case kind when :invite resource_class.invite_key_fields when :accept_invitation [:password, :password_confirmation, :invitation_token] else attributes_for_without_invitable(kind) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise_invitable-1.3.1 | lib/devise_invitable/parameter_sanitizer.rb |