Sha256: 893aa79b6a6cbeee1d45648d4a9f29512fd1841fafa4ff2757595a0a1e8fb99a

Contents?: true

Size: 175 Bytes

Versions: 3

Compression:

Stored size: 175 Bytes

Contents

class Spree::Label < Spree::Base

  has_and_belongs_to_many :variants, class_name: 'Spree::Variant'

  validates_presence_of :name, :color
  validates_uniqueness_of :name

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_zaez_variants_labels-3.0.5 app/models/spree/label.rb
spree_zaez_variants_labels-3.0.4 app/models/spree/label.rb
spree_zaez_variants_labels-3.0.1 app/models/spree/label.rb