Add and apply Style/ExplicitBlockArgument rule
We were already applying it in most places.
This commit is contained in:
@@ -130,9 +130,7 @@ module GlobalizeHelper
|
||||
hidden_field_tag("enabled_translations[#{locale}]", (enabled ? 1 : 0))
|
||||
end
|
||||
|
||||
def globalize(locale)
|
||||
Globalize.with_locale(locale) do
|
||||
yield
|
||||
end
|
||||
def globalize(locale, &block)
|
||||
Globalize.with_locale(locale, &block)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user