Need a special human name for this one, move to a method

This commit is contained in:
Jason Zimdars
2025-10-31 16:41:50 -05:00
parent 8d58190483
commit ccbc7cd416
2 changed files with 14 additions and 2 deletions
+11
View File
@@ -14,6 +14,17 @@ module Filter::Fields
def default_value?(key, value)
default_values[key.to_sym].eql?(value)
end
def indexed_by_human_name(index)
case index
when "postponing_soon"
"Auto-closing soon"
when "all"
"Open"
else
index.humanize
end
end
end
included do