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-4.2.0 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.2.0.rc5 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.2.0.rc4 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.2.0.rc3 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.13 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.0.6 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.2.0.rc2 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.7.13 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.0.5 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.12 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.7.12 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.2.0.rc1 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.0.4 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-3.7.11 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.11 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.10 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.2.0.beta app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.9 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.8 app/helpers/spree/admin/stock_locations_helper.rb
spree_backend-4.1.7 app/helpers/spree/admin/stock_locations_helper.rb