Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rails6/en/chapter07-placing-orders.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ We can now add the implementation:
class Order < ApplicationRecord
# ...
def set_total!
self.total = products.sum :price
self.total = self.products.map(&:price).sum
end
end
----
Expand Down
2 changes: 1 addition & 1 deletion rails6/es/chapter07-placing-orders.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ Ahora podemos añadir la implementación:
class Order < ApplicationRecord
# ...
def set_total!
self.total = products.sum :price
self.total = self.products.map(&:price).sum
end
end
----
Expand Down
2 changes: 1 addition & 1 deletion rails6/fr/chapter07-placing-orders.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ Nous pouvons maintenant ajouter l'implémentation:
class Order < ApplicationRecord
# ...
def set_total!
self.total = self.products.sum :price
self.total = self.products.map(&:price).sum
end
end
----
Expand Down