Filter by golden status
This commit is contained in:
@@ -24,6 +24,7 @@ class Card < ApplicationRecord
|
||||
when "closing_soon" then closing_soon
|
||||
when "falling_back_soon" then falling_back_soon
|
||||
when "closed" then closed.recently_closed_first
|
||||
when "golden" then golden
|
||||
else all
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module Filter::Fields
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
INDEXES = %w[ all stalled closing_soon falling_back_soon ]
|
||||
INDEXES = %w[ all stalled closing_soon falling_back_soon golden ]
|
||||
SORTED_BY = %w[ newest oldest latest ]
|
||||
|
||||
delegate :default_value?, to: :class
|
||||
|
||||
Reference in New Issue
Block a user