Skip to content

Instantly share code, notes, and snippets.

@Baael
Created January 5, 2009 12:27
Show Gist options
  • Save Baael/43373 to your computer and use it in GitHub Desktop.
Save Baael/43373 to your computer and use it in GitHub Desktop.
class CommentObserver < ActiveRecord::Observer
def after_create(comment)
GADU.message :to=> 3062261, :text => "Artykuł #{comment.post.title} otrzymał nowy komentarz\r\n#{comment.id} od #{comment.author}\r\nczytaj na: http://blog.baael.pl/#{comment.post.permalink}"
#for PULL
# "\r\nzaakceptować? [t/n] (||akceptuj:id)"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment