Rails: How to preform callbacks on a model that is not updated but is related to updated model
- by Sam
to KIS I have two models: Reservations and Containers.
Container
has_many :reservations
Reservation
belongs_to :container
When I update a reservation I also want to preform call backs on the respective Container.
What is a good way to do this?
Should I be using nested rest routes, put the container logic in the Reservation model, or something else