Sha256: c58b22d7b66ac8774917c6fdc6dae7575fa75d3b5e73de74dbfac5004000c78b

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

module Ecom
  class Product
    include Mongoid::Document
    include Mongoid::Slug

    field :name, type: String
    field :description, type: String
    field :base_price, type: Float
    field :sku, type: String

    slug :name, history: true 
    belongs_to :category
    mount_uploader :image, ImageUploader
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecom-0.1.1 app/models/ecom/product.rb