Sha256: 5bf84b11edbc1611fb10a71ce897e83c29d93b9e11d701b5dee4fdf3d4a62061

Contents?: true

Size: 288 Bytes

Versions: 37

Compression:

Stored size: 288 Bytes

Contents

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

37 entries across 37 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.5.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.5.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.5.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.5.0.beta2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.5.0.beta1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.4.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.4.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.3.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.2.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.1.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.0.3 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.4.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.4.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.4.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.4.0.beta1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.3.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.3.0.rc3 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.3.0.rc2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.3.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb