Sha256: 762939e49e389d780b2b16a9d7fac53b72c10907941278642a39b903712ce01b

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

class Spree::UserAuthenticationsController < Spree::StoreController
  def index
    @authentications = spree_current_user.user_authentications if spree_current_user
  end

  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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_social-1.6.0 app/controllers/spree/user_authentications_controller.rb
solidus_social-1.5.0 app/controllers/spree/user_authentications_controller.rb
solidus_social-1.4.0 app/controllers/spree/user_authentications_controller.rb
solidus_social-1.3.1 app/controllers/spree/user_authentications_controller.rb
solidus_social-1.3.0 app/controllers/spree/user_authentications_controller.rb