rubocop: fix various Rubocop warnings.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
module WikiPagesHelper
|
||||
def wiki_page_other_names_list(wiki_page)
|
||||
names_html = wiki_page.other_names.map {|name| link_to(name, "http://www.pixiv.net/search.php?s_mode=s_tag_full&word=#{u(name)}", :class => "wiki-other-name")}
|
||||
names_html.join(" ").html_safe
|
||||
names_html = wiki_page.other_names.map do |name|
|
||||
link_to(name, "https://www.pixiv.net/tags/#{u(name)}/artworks", class: "wiki-other-name")
|
||||
end
|
||||
|
||||
safe_join(names_html, " ")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user