aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/blog_comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/blog_comment.rb')
-rw-r--r--app/models/blog_comment.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb
index d9e1917..cab2227 100644
--- a/app/models/blog_comment.rb
+++ b/app/models/blog_comment.rb
@@ -4,8 +4,9 @@ class BlogComment < ActiveRecord::Base
acts_as_indexed :fields => [:name, :email, :body]
- named_scope :approved, :conditions => {:approved => true}
- named_scope :rejected, :conditions => {:approved => false}
+ named_scope :unmoderated, :conditions => {:state => nil}
+ named_scope :approved, :conditions => {:state => 'approved'}
+ named_scope :rejected, :conditions => {:state => 'rejected'}
module Moderation
class << self