app/helpers/spree/pinterest_helper.rb in spree_pinterest-0.1.1 vs app/helpers/spree/pinterest_helper.rb in spree_pinterest-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ module Spree module PinterestHelper def pin_it_button(product) - return if product.images.blank? + return if product.images.empty? - url = escape request.url + url = escape spree.product_url(product) media = escape product.images.first.attachment.url description = escape product.name link_to("Pin It", "http://pinterest.com/pin/create/button/?url=#{url}&media=#{media}&description=#{description}",