search for: has_new_mil_indication

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

2006 Mar 10
9
Observers?
Hello all! I''m having an issue with Observers, and I''m hoping someone knows the answer. Here is the definition: app/models/vehicle_observer.rb > class VehicleObserver < ActiveRecord::Observer > def after_save(vehicle) > breakpoint > if vehicle.has_new_mil_indication? > UserMailer.deliver_mil_notice(vehicle) > end > end > end > > VehicleObserver.instance It seems from reading AWDR that the last line may not be necessary for Rails apps, though it appears that if it isn''t there you can only specify when observations tak...