Skip to content
Snippets Groups Projects
Commit 14a5eee4 authored by Raphael's avatar Raphael
Browse files

Return if there is a failure to create a user

parent 36089149
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ class RegistrationsController < Devise::RegistrationsController
rescue MongoMapper::DocumentNotValid => e
flash[:error] = e.message
redirect_to new_user_registration_path
return
end
if user.save
flash[:notice] = I18n.t 'registrations.create.success'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment