Class: Spree::UserAuthenticationsController

Inherits:
StoreController
  • Object
show all
Defined in:
app/controllers/spree/user_authentications_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



6
7
8
9
10
11
# File 'app/controllers/spree/user_authentications_controller.rb', line 6

def destroy
  @authentication = spree_current_user.user_authentications.find(params[:id])
  @authentication.destroy
  flash[:notice] = Spree.t(:destroy, scope: :authentications)
  redirect_to spree.
end

#indexObject



2
3
4
# File 'app/controllers/spree/user_authentications_controller.rb', line 2

def index
  @authentications = spree_current_user.user_authentications if spree_current_user
end