Remove unused block parameters

We're using `yield` in the method body.
This commit is contained in:
Javi Martín
2019-09-28 21:53:22 +02:00
parent 2fed7b9db3
commit 9c3686a6d8
3 changed files with 4 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ module GlobalizeHelper
hidden_field_tag("enabled_translations[#{locale}]", (enabled ? 1 : 0))
end
def globalize(locale, &block)
def globalize(locale)
Globalize.with_locale(locale) do
yield
end

View File

@@ -33,7 +33,7 @@ module TranslatableFormHelper
private
def fields_for_locale(locale, &block)
def fields_for_locale(locale)
fields_for_translation(@translations[locale]) do |translations_form|
@template.content_tag :div, translations_options(translations_form.object, locale) do
@template.concat translations_form.hidden_field(
@@ -49,7 +49,7 @@ module TranslatableFormHelper
end
end
def fields_for_translation(translation, &block)
def fields_for_translation(translation)
fields_for(:translations, translation, builder: TranslationsFieldsBuilder) do |f|
yield f
end

View File

@@ -129,7 +129,7 @@ class Mailer < ApplicationMailer
private
def with_user(user, &block)
def with_user(user)
I18n.with_locale(user.locale) do
yield
end