comment_handler.rb 220 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.verify_and_notify rescue ActiveRecord::RecordNotFound # just ignore non-existing comments end end