Class: Spree::UserAuthenticationsController

Inherits:
BaseController
  • Object
show all
Includes:
RouteResolver
Defined in:
app/controllers/spree/user_authentications_controller.rb

Instance Method Summary collapse

Methods included from RouteResolver

#resolve_route_for

Instance Method Details

#destroyObject



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

#indexObject



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