Sha256: e7e0f2d3533fbefcaca5dc14968a7f9f147452f3c6ad74a7ec5fd2231aad08db

Contents?: true

Size: 865 Bytes

Versions: 3

Compression:

Stored size: 865 Bytes

Contents

# require tilt if available; fall back on bundled version.
begin
  require 'tilt'
rescue LoadError
  require 'sinatra/tilt'
end
require 'padrino-core/support_lite'

Dir[File.dirname(__FILE__) + '/padrino-mailer/**/*.rb'].each { |file| require file }

module Padrino
  ##
  # This component uses an enhanced version of the excellent pony library (vendored) for a powerful but simple mailer
  # system within Padrino (and Sinatra).
  # There is full support for using an html content type as well as for file attachments.
  # The MailerPlugin has many similarities to ActionMailer but is much lighterweight and (arguably) easier to use.
  #
  module Mailer
    ##
    # Used Padrino::Application for register Padrino::Mailer::Base::views_path
    #
    def self.registered(app)
      Padrino::Mailer::Base::views_path << app.views
    end
  end # Mailer
end # Padrino

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
padrino-mailer-0.9.10 lib/padrino-mailer.rb
padrino-mailer-0.9.9 lib/padrino-mailer.rb
padrino-mailer-0.9.7 lib/padrino-mailer.rb