Posts by Rafael Belo • 11 points
1 post
-
1
votes1
answer170
viewsA: Update stock before saving template with nested_attributes and Gem Cocoon
I advise you to create a service that does this, otherwise your model will be flooded with business rules and will not guarantee reliability in transactions. For such cases where an action will…