I have an observer class called AttendanceObserver which sends an email everytime a record is inserted into the Attendance table. But there are several other actions when I also save into that table but I don''t want to send an e-mail. Does anybody knows is there a way to do this and maybe specify a save into an attendance table without calling the after_create method below? Thanks, Elioncho [code] AttendanceObserver < ActiveRecord::Observer def after_create(attendance) attendance.user.send_message(attendance.user, ''text'', ''You have been invited to an event'') UserMailer.deliver_event_notification(attendance.user,attendance.event) end end [/code] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---