adds a new "organization sigup success" view. Related with #226

This commit is contained in:
kikito
2015-08-24 14:34:58 +02:00
parent f1b625aadd
commit 5e31a9f338
5 changed files with 40 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ class Organizations::RegistrationsController < Devise::RegistrationsController
end
end
def success
end
def create
build_resource(sign_up_params)
if resource.valid_with_captcha?
@@ -17,6 +20,11 @@ class Organizations::RegistrationsController < Devise::RegistrationsController
end
end
protected
def after_inactive_sign_up_path_for(resource)
organizations_sign_up_success_path
end
private
def sign_up_params