Module: Spree::Admin::ReservedStockItemsHelper
- Defined in:
- app/helpers/spree/admin/reserved_stock_items_helper.rb
Instance Method Summary collapse
Instance Method Details
#stock_location_name(stock_item) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/helpers/spree/admin/reserved_stock_items_helper.rb', line 4 def stock_location_name(stock_item) stock_location = stock_item.stock_location return stock_location.name unless stock_location.reserved_items? user_link = link_to(stock_item.user.email, admin_user_path(stock_item.user)) "#{stock_location.name} (#{user_link})".html_safe end |