Apply Style/Proc rubocop rule

While I tend to use `Proc.new`, using `proc` is shorter and more
consistent since we also use `lambda`.
This commit is contained in:
Javi Martín
2019-10-26 13:15:36 +02:00
parent 69c01df63e
commit ddb37f89ae
4 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
class ApplicationMailer < ActionMailer::Base
helper :settings
helper :application
default from: Proc.new { "#{Setting["mailer_from_name"]} <#{Setting["mailer_from_address"]}>" }
default from: proc { "#{Setting["mailer_from_name"]} <#{Setting["mailer_from_address"]}>" }
layout "mailer"
end