Skip to content

Commit

Permalink
remove duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Francois committed Aug 24, 2013
1 parent 442834a commit e8fdc91
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/article.rb
Expand Up @@ -51,7 +51,6 @@ def spam
scope :category, lambda { |category_id| where('categorizations.category_id = ?', category_id).includes('categorizations') }
scope :drafts, lambda { where(state: 'draft').order('created_at DESC') }
scope :child_of, lambda { |article_id| where(parent_id: article_id) }
scope :published, lambda { where(published: true, published_at: Time.at(0)..Time.now).order('published_at DESC') }
scope :published_at, lambda {|time_params| published.where(published_at: PublifyTime.delta(*time_params)).order('published_at DESC')}
scope :published_since, lambda {|time| published.where('published_at > ?', time).order('published_at DESC') }
scope :withdrawn, lambda { where(state: 'withdrawn').order('published_at DESC') }
Expand Down

0 comments on commit e8fdc91

Please sign in to comment.