cleanup switch_to supplier and make facebook image https

This commit is contained in:
2020-03-07 11:11:06 -05:00
parent eda3fc280b
commit 68f7d4dd54
6 changed files with 16 additions and 14 deletions
@@ -29,14 +29,6 @@ module Suppliers
render json: current_supplier
end
def switch_to
@switch_supplier = Supplier.find(params[:id])
#TODO sessions currently not working, just tokens
session[:supplier_id] = @switch_supplier.id if @switch_supplier.employee_ids.include? current_employee.id
render json: {ok: true}
#redirect_to supplier_root_path(other: '/my-account')
end
def mark_as_open
current_supplier.mark_as_open!
head :ok