diff options
Diffstat (limited to 'app/models/order.rb')
-rw-r--r-- | app/models/order.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/order.rb b/app/models/order.rb index ae5a0d5..213bde9 100644 --- a/app/models/order.rb +++ b/app/models/order.rb @@ -7,4 +7,5 @@ class Order < ApplicationRecord has_one :payment has_many :product_orders has_many :products, through: :product_orders + accepts_nested_attributes_for :product_orders end |