changes to flags/appeals

This commit is contained in:
albert
2011-12-15 10:57:25 -05:00
parent 3463e45675
commit 4e99ca2613
3 changed files with 10 additions and 13 deletions

View File

@@ -12,8 +12,8 @@ class PostAppeal < ActiveRecord::Base
scope :recent, lambda {where(["created_at >= ?", 1.day.ago])}
def validate_creator_is_not_limited
if appeal_count_for_creator >= 5
errors[:creator] << "can appeal 5 posts a day"
if appeal_count_for_creator >= 1
errors[:creator] << "can appeal one post a day"
false
else
true