Skip to content

Instantly share code, notes, and snippets.

@ccjr
Created April 6, 2010 20:03
Show Gist options
  • Save ccjr/358027 to your computer and use it in GitHub Desktop.
Save ccjr/358027 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 9-13. Updates to app/model/comment_observer.rb
class CommentObserver < ActiveRecord::Observer
def after_create(comment)
Notifier.comment_added(comment).deliver
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment