Module: Concerns::ConfigurableMailer
- Included in:
- Message, Notification
- Defined in:
- lib/mailboxer/concerns/configurable_mailer.rb
Instance Method Summary collapse
Instance Method Details
#get_mailer ⇒ Object
6 7 8 9 10 |
# File 'lib/mailboxer/concerns/configurable_mailer.rb', line 6 def get_mailer return @mailer if @mailer method = "#{self.class.to_s.downcase}_mailer".to_sym @mailer = Mailboxer.send(method) || "#{self.class}Mailer".constantize end |