Sha256: 1dae35cf9b23ca44fdb451e45ffda04c2be3c044be9ceae0d1a6988a4a3b7e32

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

# Bouquet::Product.find_by(name: :p1).materials
module Bouquet
  class Product < ApplicationRecord
    has_many :assemblies
    has_many :materials, through: :assemblies
    has_many :sales_orders
    has_many :customers, through: :sales_orders
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bouquet-0.2.2 core/app/models/bouquet/product.rb
bouquet-0.2.1 core/app/models/bouquet/product.rb
bouquet-0.2.0 core/app/models/bouquet/product.rb