diff --git a/app/helpers/injection_helper.rb b/app/helpers/injection_helper.rb index a0c92531ad..778f8b7d4b 100644 --- a/app/helpers/injection_helper.rb +++ b/app/helpers/injection_helper.rb @@ -117,18 +117,7 @@ module InjectionHelper def inject_enterprise_attributes(enterprise_attributes) render partial: "json/injection_ams", - locals: { name: 'enterpriseAttributes', json: @enterprise_attributes.to_json.to_s } - end - - def inject_orders - inject_json_array "orders", @orders.all, Api::OrderSerializer - end - - def inject_shops - customers = spree_current_user.customers - shops = Enterprise.where(id: @orders.pluck(:distributor_id).uniq | - customers.pluck(:enterprise_id)) - inject_json_array "shops", shops.all, Api::ShopForOrdersSerializer + locals: { name: 'enterpriseAttributes', json: enterprise_attributes.to_json.to_s } end def inject_saved_credit_cards diff --git a/app/helpers/shop_helper.rb b/app/helpers/shop_helper.rb index 65648d9440..3b649b8af2 100644 --- a/app/helpers/shop_helper.rb +++ b/app/helpers/shop_helper.rb @@ -40,10 +40,6 @@ module ShopHelper } end - def shop_tab_names - shop_tabs.map { |tab| tab[:name] } - end - def show_home_tab? require_customer? || current_distributor.preferred_shopfront_message.present? end