Product error handling

This commit is contained in:
2014-11-27 14:48:33 +01:00
parent 60f014811c
commit 5453837880
20 changed files with 96 additions and 39 deletions
+1
View File
@@ -1,6 +1,7 @@
module ProductDecorator
def category_links(options = {})
product_categories = [product_category].compact # changed from habtm to belongs_to
if namespace = options[:namespace]
product_categories.map{|pc| link_to pc.name, [namespace, pc]}.join(', ').html_safe
else