#1140: Remove order metatag when picking reltag method

This commit is contained in:
Toks
2013-12-09 12:43:27 -05:00
parent cc2443e3af
commit ace1975704
2 changed files with 9 additions and 3 deletions

View File

@@ -18,6 +18,10 @@ module PostSets
tag_array.slice(0, 25).join(" ").tr("_", " ")
end
def unordered_tag_array
tag_array.reject{|tag| tag =~ /\Aorder:\S+/}
end
def has_wiki?
is_single_tag? && ::WikiPage.titled(tag_string).exists?
end