class Suppliers::SessionsController < Devise::SessionsController respond_to :json def destroy session[:supplier_id] = nil super end end