From 4a25cde49f710adcefcb644b418a94d3d5339dbd Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Mon, 9 Aug 2010 14:03:26 -0500 Subject: Why verify presence and uniqueness of an attribute that doesn't exist? It was causing mysterious test fails, too. --- app/models/blog_comment.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'app/models/blog_comment.rb') diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb index 7c6b51f..ada3f14 100644 --- a/app/models/blog_comment.rb +++ b/app/models/blog_comment.rb @@ -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 -- cgit v1.2.3