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