Simplify calls to content_block helper

All calls were using `I18n.locale` as the second parameter, so we might
as well make it optional.
This commit is contained in:
Javi Martín
2021-05-07 00:04:45 +02:00
parent dae4aae328
commit bf10cf0c18
4 changed files with 5 additions and 5 deletions

View File

@@ -26,6 +26,6 @@ class Layout::SocialComponent < ApplicationComponent
end
def footer_content_block
content_block("footer", I18n.locale)
content_block("footer")
end
end

View File

@@ -8,6 +8,6 @@ class Layout::TopLinksComponent < ApplicationComponent
private
def top_links_content_block
content_block("top_links", I18n.locale)
content_block("top_links")
end
end