Skip to content

Devise Invitable With Strong Parameters Gem

Sergio Cambra edited this page Jul 22, 2013 · 3 revisions

Here is a simple way to get things working with strong_parameters:

# config/initializers/devise_invitable_strong_parameters.rb
Devise::InvitationsController.class_eval do
  def update_resource_params
    params.require(resource_name).permit(
      :invitation_token,
      :password,
      :password_confirmation
    )
  end
end