Why verify presence and uniqueness of an attribute that doesn't exist?
It was causing mysterious test fails, too.
This commit is contained in:
parent
bca035a31e
commit
4a25cde49f
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue