Permalink
Browse files

remove unused scopes

  • Loading branch information...
1 parent fafcfb8 commit e46ac7cf40ccea4e578b4ba1137171a7a4e953ec Yannick Francois committed Dec 9, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 app/models/article.rb
View
@@ -51,14 +51,11 @@ def spam
scope :category, lambda {|category_id| {:conditions => ['categorizations.category_id = ?', category_id], :include => 'categorizations'}}
scope :drafts, lambda { { :conditions => { :state => 'draft' }, :order => 'created_at DESC' } }
- scope :without_parent, {:conditions => {:parent_id => nil}}
scope :child_of, lambda { |article_id| {:conditions => {:parent_id => article_id}} }
scope :published, lambda { { :conditions => { :published => true, :published_at => Time.at(0)..Time.now }, :order => 'published_at DESC' } }
- scope :pending, lambda { { :conditions => ['state = ? and published_at > ?', 'publication_pending', Time.now], :order => 'published_at DESC' } }
- scope :withdrawn, lambda { { :conditions => { :state => 'withdrawn' }, :order => 'published_at DESC' } }
scope :published_at, lambda {|time_params| { :conditions => { :published => true, :published_at => Article.time_delta(*time_params) }, :order => 'published_at DESC' } }
- setting :password, :string, ''
+ setting :password, :string, ''
def initialize(*args)
super

0 comments on commit e46ac7c

Please sign in to comment.