Sha256: 5ac916293161e581e65ab4bcf5f90c048fdea814fe73fd543fe92caef3db489d
Contents?: true
Size: 302 Bytes
Versions: 2
Compression:
Stored size: 302 Bytes
Contents
require 'active_support/inflections' module Concerns module ConfigurableMailer 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailboxer-without-notification-0.11.2 | lib/mailboxer/concerns/configurable_mailer.rb |
mailboxer-without-notification-0.11.1 | lib/mailboxer/concerns/configurable_mailer.rb |