Class: Spree::UserRegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- Spree::UserRegistrationsController
- Includes:
- Core::ControllerHelpers::Auth, Core::ControllerHelpers::Common, Core::ControllerHelpers::Order, Core::ControllerHelpers::SSL, Core::ControllerHelpers::Store
- Defined in:
- lib/controllers/frontend/spree/user_registrations_controller.rb
Instance Method Summary collapse
-
#cancel ⇒ Object
GET /resource/cancel Forces the session data which is usually expired after sign in to be expired now.
-
#create ⇒ Object
POST /resource/sign_up.
-
#destroy ⇒ Object
DELETE /resource.
-
#edit ⇒ Object
GET /resource/edit.
-
#new ⇒ Object
GET /resource/sign_up.
-
#update ⇒ Object
PUT /resource.
Instance Method Details
#cancel ⇒ Object
GET /resource/cancel Forces the session data which is usually expired after sign in to be expired now. This is useful if the user wants to cancel oauth signing in/up in the middle of the process, removing all OAuth session data.
59 60 61 |
# File 'lib/controllers/frontend/spree/user_registrations_controller.rb', line 59 def cancel super end |
#create ⇒ Object
POST /resource/sign_up
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/controllers/frontend/spree/user_registrations_controller.rb', line 25 def create @user = build_resource(spree_user_params) if resource.save (:notice, :signed_up) sign_in(:spree_user, @user) session[:spree_user_signup] = true associate_user respond_with resource, location: after_sign_up_path_for(resource) else clean_up_passwords(resource) render :new end end |
#destroy ⇒ Object
DELETE /resource
50 51 52 |
# File 'lib/controllers/frontend/spree/user_registrations_controller.rb', line 50 def destroy super end |
#edit ⇒ Object
GET /resource/edit
40 41 42 |
# File 'lib/controllers/frontend/spree/user_registrations_controller.rb', line 40 def edit super end |
#new ⇒ Object
GET /resource/sign_up
19 20 21 22 |
# File 'lib/controllers/frontend/spree/user_registrations_controller.rb', line 19 def new super @user = resource end |
#update ⇒ Object
PUT /resource
45 46 47 |
# File 'lib/controllers/frontend/spree/user_registrations_controller.rb', line 45 def update super end |