summaryrefslogtreecommitdiff
path: root/app/models/order.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-13 18:14:25 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-13 18:14:25 -0600
commit4fa1f4ac81951f9b373d2167413ac3401fd8d060 (patch)
tree08c0c275d7cd2d28a00ed84c7b2f03f44404cb40 /app/models/order.rb
parentad948f0507e9ca41580592d9638eae7a244d030f (diff)
Añade servicios y validaciones de pago
Diffstat (limited to 'app/models/order.rb')
-rw-r--r--app/models/order.rb1
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