Class: Stormpath::Rails::Register::CreateController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Stormpath::Rails::Register::CreateController
- Defined in:
- app/controllers/stormpath/rails/register/create_controller.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/stormpath/rails/register/create_controller.rb', line 5 def call form.save! login_the_account if valid_for_login? respond_with_success rescue RegistrationForm::FormError, OrganizationForm::FormError => error respond_with_error(error) end |