From e8ba363b839a6722aaf3017e296e382bc5294189 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Feb 2013 13:39:53 -0500 Subject: [PATCH] fix --- app/models/upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index 5e7b76ef4..f97fb0fa2 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -25,7 +25,7 @@ class Upload < ActiveRecord::Base md5_post = Post.find_by_md5(md5) if md5_post merge_tags(md5_post) - update_attribute(:status, "duplicate: #{post.id}") + raise "duplicate: #{post.id}" end end