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-2.7.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.6.4 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.8.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.8.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.6.3 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.8.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.7.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-2.6.2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/helpers/spree/admin/stock_locations_helper.rb