Rails: How to preform callbacks on a model that is not updated but is related to updated model
        Posted  
        
            by Sam
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sam
        
        
        
        Published on 2010-04-29T04:08:22Z
        Indexed on 
            2010/04/29
            4:17 UTC
        
        
        Read the original article
        Hit count: 343
        
ruby-on-rails
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
© Stack Overflow or respective owner