Sha256: 06b0de046b3d32bf8fc219d83fc0f96ba37ce8bde7f889064b2afebcfe14d473

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

module Gemgento

  # @author Gemgento LLC
  class WishlistItem < ActiveRecord::Base
    belongs_to :product
    belongs_to :user

    validates :product, :user, presence: true
    validates :product, uniqueness: { scope: :user }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/models/gemgento/wishlist_item.rb