Sha256: 7030069b62192cdb5eb22ec6a949a11a4f34e4077dc40436de53fe6e1f8493f8

Contents?: true

Size: 319 Bytes

Versions: 85

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Admin
    module StockLocationsHelper
      def admin_stock_location_display_name(stock_location)
        name_parts = [stock_location.admin_name, stock_location.name]
        name_parts.delete_if(&:blank?)
        name_parts.join(' / ')
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.7.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.6.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.6.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.6.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb