Filter by golden status

This commit is contained in:
Jason Zimdars
2025-08-28 13:39:02 -05:00
parent 9733886db3
commit ce05d800d3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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 -1
View File
@@ -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