chore: rubocop
chore: fix api test conventions chore: rubocop -A spec/ chore: more rubocop -A fix failing test rubocop fixes removes helper methods that are in my opinion dead code more rubocop fixes rubocop -a --auto-gen-config
This commit is contained in:
parent
f6fb804bbe
commit
fb2b4d8a8a
331 changed files with 4263 additions and 4507 deletions
|
|
@ -10,7 +10,7 @@ module FoodsoftWiki
|
|||
|
||||
link_attributes_for do |page|
|
||||
permalink = Page.permalink(page)
|
||||
if Page.exists?(:permalink => permalink)
|
||||
if Page.exists?(permalink: permalink)
|
||||
{ href: url_for(:wiki_page_path, permalink: permalink) }
|
||||
elsif page.include? '#'
|
||||
# If "Foo#Bar" does not exist then consider "Foo" with anchor.
|
||||
|
|
@ -20,8 +20,8 @@ module FoodsoftWiki
|
|||
end
|
||||
end
|
||||
|
||||
section_link do |section|
|
||||
""
|
||||
section_link do |_section|
|
||||
''
|
||||
end
|
||||
|
||||
def to_html(render_options = {})
|
||||
|
|
@ -41,7 +41,7 @@ module FoodsoftWiki
|
|||
return { href: '#' + anchor } if page.empty?
|
||||
|
||||
permalink = Page.permalink(page)
|
||||
if Page.exists?(:permalink => permalink)
|
||||
if Page.exists?(permalink: permalink)
|
||||
{ href: url_for(:wiki_page_path, permalink: permalink, anchor: anchor) }
|
||||
else
|
||||
# Do not suggest to use number signs in the title.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue