While I tend to use `Proc.new`, using `proc` is shorter and more consistent since we also use `lambda`.
7 lines
202 B
Ruby
7 lines
202 B
Ruby
class ApplicationMailer < ActionMailer::Base
|
|
helper :settings
|
|
helper :application
|
|
default from: proc { "#{Setting["mailer_from_name"]} <#{Setting["mailer_from_address"]}>" }
|
|
layout "mailer"
|
|
end
|