This commit is contained in:
Toks
2013-04-14 18:48:55 -04:00
parent 313943ba05
commit 96a468b51a

View File

@@ -68,6 +68,9 @@ class PostFlag < ActiveRecord::Base
if post.is_deleted?
errors[:post] << "is deleted"
false
elsif post.is_pending?
errors[:post] << "is pending"
false
else
true
end