Sha256: 501ab18576e63ec25a0cd4640076492e9fb06a7c4232e75b1dbda31bac0f912f

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

class Product < ActiveRecord::Base
  acts_as_product

  def covers_urls(version: nil)
    path = 'fallback/product_default.png'
    ActionController::Base.helpers.image_path path
  end

  def cover_url_or_default(index: 0, version: nil)
    path = 'fallback/product_default.png'
    ActionController::Base.helpers.image_path path
  end

  def description
    nil
  end

  def to_s
    title
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 spec/dummy/app/models/product.rb