Product error handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user