Class: Spree::UserRegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- Spree::UserRegistrationsController
- Includes:
- Core::ControllerHelpers, SslRequirement
- Defined in:
- app/controllers/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.
56 57 58 |
# File 'app/controllers/spree/user_registrations_controller.rb', line 56 def cancel super end |
#create ⇒ Object
POST /resource/sign_up
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/controllers/spree/user_registrations_controller.rb', line 22 def create @user = build_resource(params[:user]) if resource.save (:notice, :signed_up) sign_in(:user, @user) session[:spree_user_signup] = true associate_user sign_in_and_redirect(:user, @user) else clean_up_passwords(resource) render :new end end |
#destroy ⇒ Object
DELETE /resource
47 48 49 |
# File 'app/controllers/spree/user_registrations_controller.rb', line 47 def destroy super end |
#edit ⇒ Object
GET /resource/edit
37 38 39 |
# File 'app/controllers/spree/user_registrations_controller.rb', line 37 def edit super end |
#new ⇒ Object
GET /resource/sign_up
17 18 19 |
# File 'app/controllers/spree/user_registrations_controller.rb', line 17 def new super end |
#update ⇒ Object
PUT /resource
42 43 44 |
# File 'app/controllers/spree/user_registrations_controller.rb', line 42 def update super end |