removes half-baked feature

archived proposals is a separate issue now
This commit is contained in:
Juanjo Bazán
2016-09-08 17:06:16 +02:00
parent 11a5ed15ea
commit e330b704c0
3 changed files with 0 additions and 3 deletions

View File

@@ -44,7 +44,6 @@ class Proposal < ActiveRecord::Base
scope :sort_by_random, -> { reorder("RANDOM()") }
scope :sort_by_relevance, -> { all }
scope :sort_by_flags, -> { order(flags_count: :desc, updated_at: :desc) }
scope :archived, -> { where("proposals.created_at <= ?", 1.year.ago)}
scope :last_week, -> { where("proposals.created_at >= ?", 7.days.ago)}
scope :retired, -> { where.not(retired_at: nil) }
scope :not_retired, -> { where(retired_at: nil) }