comment_handler.rb 217 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 class CommentHandler < Struct.new(:comment_id) def perform comment = Comment.find(comment_id) comment.notify_by_mail rescue ActiveRecord::RecordNotFound # just ignore non-existing comments end end