Files
mozo-backend/app/controllers/registrations_controller.rb
T

10 lines
288 B
Ruby

class RegistrationsController < Devise::RegistrationsController
private
# override devise internal to allow name as sign_up param
def sign_up_params
params.require(resource_name).permit resource_class.authentication_keys + [:name, :password, :password_confirmation]
end
end