Skip to content

Instantly share code, notes, and snippets.

@kiote
Created July 6, 2011 08:11
Show Gist options
  • Save kiote/1066808 to your computer and use it in GitHub Desktop.
Save kiote/1066808 to your computer and use it in GitHub Desktop.
Observer
class Project < ActiveRecord::Base
after_create :send_create_notifications
private
def send_create_notifications
self.members.each do |member|
ProjectMailer.deliver_notification(self, member)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment