fixes to post flag logic

This commit is contained in:
albert
2013-02-22 21:13:11 -05:00
parent 4203f344c0
commit 6db391f6a2
3 changed files with 12 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ class PostFlag < ActiveRecord::Base
extend SearchMethods
def update_post
post.update_column(:is_flagged, true)
post.update_column(:is_flagged, true) unless post.is_flagged?
end
def validate_creator_is_not_limited