Sha256: d07f4758e5982db32a5ac2aeb6e5dc47cb1ccd911fa2eb10ef68512d912ab765

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module Gemgento

  # @author Gemgento LLC
  class LineItemOption < ActiveRecord::Base
    belongs_to :line_item, class_name: 'Gemgento::LineItem'
    belongs_to :bundle_item, class_name: 'Gemgento::Bundle::Item'

    validates :bundle_item, uniqueness: { scope: :line_item }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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