Sha256: 967e5f4281933c4a95603c2a60c665388e9f2289a4f3bc4dfc5533d7d810d998

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 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

2 entries across 2 versions & 1 rubygems

Version Path
padrino-mailer-0.9.3 lib/padrino-mailer.rb
padrino-mailer-0.9.2 lib/padrino-mailer.rb