Remove unused block parameters
We're using `yield` in the method body.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user