Module: Spree::Admin::StockLocationsHelper
- Defined in:
- app/helpers/spree/admin/stock_locations_helper_decorator.rb
Instance Method Summary collapse
Instance Method Details
#display_name(stock_location) ⇒ Object
6 7 8 9 10 |
# File 'app/helpers/spree/admin/stock_locations_helper_decorator.rb', line 6 def display_name(stock_location) name = original_display_name(stock_location) return name unless stock_location.reserved_items? "#{name} (Reserved Items)" end |
#original_display_name ⇒ Object
5 |
# File 'app/helpers/spree/admin/stock_locations_helper_decorator.rb', line 5 alias_method :original_display_name, :display_name |