fixes #119: bad text on post flags

This commit is contained in:
albert
2011-10-14 17:12:03 -04:00
parent eb10aacdce
commit c03ed4f644
4 changed files with 14 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ class PostFlag < ActiveRecord::Base
validate :validate_creator_is_not_limited
validate :validate_post_is_active
before_validation :initialize_creator, :on => :create
validates_uniqueness_of :creator_id, :scope => :post_id, :message => "has already flagged this post"
validates_uniqueness_of :creator_id, :scope => :post_id, :message => "have already flagged this post"
before_save :update_post
scope :resolved, where("is_resolved = ?", true)
scope :unresolved, where("is_resolved = ?", false)