I normally have my observers tested, so the announcement “there is no mail comming” was pretty irritating at first, until i noticed that it was true. So i began my search … and after quiet some time digging and trying i found that i forgot to add the new observer to the config….
Normal Observer Setup
#environment.rb config.active_record.observers = :user_observer, ....
Automatic Observer Setup
And since i am forgetful, how about auto-loading all observers:
#environment.rb observers = Dir.glob("#{RAILS_ROOT}/app/models/*_observer.rb").map do |file| File.basename(file).sub('.rb','') end config.active_record.observers = observers