Sha256: ce84455324b709f59239a24c5365c2ae3266f9b3abd29d7509c585d06c0fcf6e

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

class Market::Property < ActiveRecord::Base

  has_many :product_properties, dependent: :destroy, inverse_of: :property, class_name: '::Market::ProductProperty'
  has_many :products, through: :product_properties

  validates :name, presence: true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/market/templates/models/property.rb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/market/templates/models/property.rb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/market/templates/models/property.rb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/market/templates/models/property.rb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/market/templates/models/property.rb