File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ def ensure_admin!
215
215
end
216
216
217
217
def redirect_to_search
218
- tags = @network . try ( :slug ) . try ( :to_a ) || ( params [ :tags ] && params [ :tags ] . split ( '/' ) ) || [ ]
218
+ tags = @network . try ( :slug ) . try ( :split ) || ( params [ :tags ] && params [ :tags ] . split ( '/' ) ) || [ ]
219
219
tags = tags . map { |tag | "##{ tag } " } . join ( ' ' )
220
220
redirect_to protips_path ( search : tags , show_all : params [ :show_all ] )
221
221
end
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def tag_with_name!
102
102
103
103
def correct_tags
104
104
if self . tag_list_changed?
105
- self . tags_list = self . tag_list . uniq . select { |tag | Tag . exists? ( name : tag ) } . reject { |tag | ( tag != self . name ) && Network . exists? ( name : tag ) }
105
+ self . tag_list = self . tag_list . uniq . select { |tag | Tag . exists? ( name : tag ) } . reject { |tag | ( tag != self . name ) && Network . exists? ( name : tag ) }
106
106
end
107
107
end
108
108
You can’t perform that action at this time.
0 commit comments