search for: hotelobserver

Displaying 1 result from an estimated 1 matches for "hotelobserver".

2008 Jul 21
1
Re: Observer
...generate_hotel_setup_files(model.id) end On Jul 21, 9:59 am, David Nguyen <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > Hi, > I have to make an observer if a modification is done on 3 differents > classes > Hotel, Server, ServerUser. > > class HotelObserver < ActiveRecord::Observer >   observe Hotel, Server, ServerUser > >   def after_create(model) >     generate_hotel_param_files >     generate_hotel_setup_files >   end > >   def after_update(model) >     generate_hotel_param_files >     generate_hotel_setup_files &gt...