Sha256: 6e562c4547507fc5ff4e94052ac5c5c986bf2075867281fb715a1a4dbfde1634

Contents?: true

Size: 365 Bytes

Versions: 118

Compression:

Stored size: 365 Bytes

Contents

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

      def state(stock_location)
        stock_location.active? ? 'active' : 'inactive'
      end
    end
  end
end

Version data entries

118 entries across 118 versions & 2 rubygems

Version Path
spree_backend-3.5.0 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.6.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.5.0.rc2 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.5.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.5 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.4 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.3 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.3.2 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.2 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.1 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.0 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.0.rc2 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.4.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.3.1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.3.0 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.3.0.rc2 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.3.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
solidus_backend-1.3.0.beta1 app/helpers/spree/admin/stock_locations_helper.rb