Commit d0128dc 1 parent 0db10f1 commit d0128dc Copy full SHA for d0128dc
File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -419,6 +419,7 @@ def tag_search_params
419
419
:name ,
420
420
:fandoms ,
421
421
:type ,
422
+ :canonical ,
422
423
:wrangling_status ,
423
424
:created_at ,
424
425
:uses ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ class TagSearchForm
7
7
ATTRIBUTES = [
8
8
:query ,
9
9
:name ,
10
+ :canonical ,
10
11
:wrangling_status ,
11
12
:fandoms ,
12
13
:type ,
@@ -25,6 +26,7 @@ class TagSearchForm
25
26
def initialize ( options = { } )
26
27
@options = options
27
28
set_fandoms
29
+ set_wrangling_status
28
30
@searcher = TagQuery . new ( @options . delete_if { |_ , v | v . blank? } )
29
31
end
30
32
@@ -43,6 +45,12 @@ def set_fandoms
43
45
@options [ :fandom_ids ] = Tag . where ( name : names ) . pluck ( :id )
44
46
end
45
47
48
+ def set_wrangling_status
49
+ return unless @options [ :canonical ]
50
+
51
+ @options [ :wrangling_status ] = "canonical"
52
+ end
53
+
46
54
def sort_columns
47
55
options [ :sort_column ] || "name"
48
56
end
You can’t perform that action at this time.
0 commit comments