Created
January 5, 2009 12:27
-
-
Save Baael/43373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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