Class: Spree::UserAuthenticationsController
- Inherits:
-
StoreController
- Object
- StoreController
- Spree::UserAuthenticationsController
- Defined in:
- app/controllers/spree/user_authentications_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/spree/user_authentications_controller.rb', line 8 def destroy @authentication = spree_current_user.user_authentications.find(params[:id]) @authentication.destroy flash[:notice] = I18n.t('spree.destroy', scope: :authentications) redirect_to spree.account_path end |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/spree/user_authentications_controller.rb', line 4 def index @authentications = spree_current_user.user_authentications if spree_current_user end |