Why verify presence and uniqueness of an attribute that doesn't exist?

It was causing mysterious test fails, too.
This commit is contained in:
Joe Sak 2010-08-09 14:03:26 -05:00
parent bca035a31e
commit 4a25cde49f

View file

@ -4,9 +4,6 @@ class BlogComment < ActiveRecord::Base
acts_as_indexed :fields => [:name, :email, :body]
validates_presence_of :title
validates_uniqueness_of :title
named_scope :approved, :conditions => {:approved => true}
named_scope :rejected, :conditions => {:approved => false}
end