Sha256: 9f6f3cea3b20abdb206b76da8ef6cb66809a52d612c26a6a5c8a00496b6e4f72

Contents?: true

Size: 139 Bytes

Versions: 2

Compression:

Stored size: 139 Bytes

Contents

class ProductLink < MenuLink
  def url
    if product = Product.find(self.target_id)
      product.url
    else
      ''
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/models/product_link.rb
forgeos_commerce-1.9.0 app/models/product_link.rb