Sha256: 194f86bbd633a3b3251b58d0cef39b479b5da42ad6bde3c41f930231770ae9cf

Contents?: true

Size: 290 Bytes

Versions: 24

Compression:

Stored size: 290 Bytes

Contents

class Rad::Mailer
  inject logger: :logger
  
  def deliver letter
    mail = Mail.new letter.to_h
    if rad.development?
      logger.info "RAD delivering mail #{letter.to_h.inspect}"
    else
      logger.info "RAD delivering mail '#{letter.subject}'"
    end
    mail.deliver!
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.2.6 lib/rad/mailer/_mailer.rb
rad_core-0.2.5 lib/rad/mailer/_mailer.rb
rad_core-0.2.4 lib/rad/mailer/_mailer.rb
rad_core-0.2.3 lib/rad/mailer/_mailer.rb
rad_core-0.2.2 lib/rad/mailer/_mailer.rb
rad_core-0.2.1 lib/rad/mailer/_mailer.rb
rad_core-0.2.0 lib/rad/mailer/_mailer.rb
rad_core-0.0.30 lib/rad/mailer/_mailer.rb
rad_core-0.0.29 lib/rad/mailer/_mailer.rb
rad_core-0.0.28 lib/rad/mailer/_mailer.rb
rad_core-0.0.27 lib/rad/mailer/_mailer.rb
rad_core-0.0.26 lib/rad/mailer/_mailer.rb
rad_core-0.0.25 lib/rad/mailer/_mailer.rb
rad_core-0.0.24 lib/rad/mailer/_mailer.rb
rad_core-0.0.23 lib/rad/mailer/_mailer.rb
rad_core-0.0.22 lib/rad/mailer/_mailer.rb
rad_core-0.0.21 lib/rad/mailer/_mailer.rb
rad_core-0.0.20 lib/rad/mailer/_mailer.rb
rad_core-0.0.19 lib/rad/mailer/_mailer.rb
rad_core-0.0.18 lib/rad/mailer/_mailer.rb