Module: LineItemsHelperOverrides

Defined in:
lib/kete_gets_trollied/line_items_helper_overrides.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
6
7
8
# File 'lib/kete_gets_trollied/line_items_helper_overrides.rb', line 3

def link_to_purchasable_in(line_item)
  item = line_item.purchasable_item
  link_to item.description_for_purchasing, :controller => zoom_class_controller(item.class.name),
  :urlified_name => item.basket.urlified_name,
  :action => :show, :id => item
end