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