aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-08-09 14:03:26 -0500
committerJoe Sak <joe@joesak.com>2010-08-09 14:03:26 -0500
commit4a25cde49f710adcefcb644b418a94d3d5339dbd (patch)
tree208c2314b2695a49ada578a3c2eeedd55b9ea472 /app
parentbca035a31e4d85c4dc23ee23505ea49b74329081 (diff)
downloadrefinerycms-blog-4a25cde49f710adcefcb644b418a94d3d5339dbd.tar.gz
refinerycms-blog-4a25cde49f710adcefcb644b418a94d3d5339dbd.tar.bz2
refinerycms-blog-4a25cde49f710adcefcb644b418a94d3d5339dbd.zip
Why verify presence and uniqueness of an attribute that doesn't exist?
It was causing mysterious test fails, too.
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_comment.rb3
1 files changed, 0 insertions, 3 deletions
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