Class: Spree::UserAuthenticationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Spree::UserAuthenticationsController
- Defined in:
- app/controllers/spree/user_authentications_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/spree/user_authentications_controller.rb', line 6 def destroy @authentication = current_user.user_authentications.find(params[:id]) @authentication.destroy flash[:notice] = "Successfully destroyed authentication method." redirect_to account_path end |
#index ⇒ Object
2 3 4 |
# File 'app/controllers/spree/user_authentications_controller.rb', line 2 def index @authentications = current_user.user_authentications if current_user end |