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