We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0128dc commit c146ebdCopy full SHA for c146ebd
app/models/search/tag_search_form.rb
@@ -45,10 +45,15 @@ def set_fandoms
45
@options[:fandom_ids] = Tag.where(name: names).pluck(:id)
46
end
47
48
+ def bool_value(str)
49
+ %w[true 1 T].include?(str.to_s)
50
+ end
51
+
52
def set_wrangling_status
- return unless @options[:canonical]
53
+ return if @options[:canonical].blank?
54
- @options[:wrangling_status] = "canonical"
55
+ # Match old behavior for canonical param
56
+ @options[:wrangling_status] = bool_value(@options[:canonical]) ? "canonical" : "noncanonical"
57
58
59
def sort_columns
0 commit comments