This commit is contained in:
Toks
2013-11-19 00:07:56 -05:00
parent 5b127a38d9
commit 14f2e47319

View File

@@ -37,7 +37,6 @@ class Upload < ActiveRecord::Base
def validate_md5_uniqueness
md5_post = Post.find_by_md5(md5)
if md5_post
merge_tags(md5_post)
raise "duplicate: #{md5_post.id}"
end
end
@@ -119,11 +118,6 @@ class Upload < ActiveRecord::Base
end
end
end
def merge_tags(post)
post.tag_string += " #{tag_string}"
post.save
end
end
module FileMethods