lib/reviewed/article.rb in reviewed-0.1.4 vs lib/reviewed/article.rb in reviewed-0.1.21

- old
+ new

@@ -11,12 +11,10 @@ def find_page(slug) pages.find { |page| page.slug.match(/#{slug}/i) } end def primary_product - if respond_to?(:products) - products.select { |p| p.id == primary_product_id }.first - end + products.select { |p| p.id == primary_product_id }.first end def attachments(tag=nil) if tag.present? @attributes.attachments.select do |attachment|