Sha256: e946f5cd1e1f19d86df4134a59c630926ea337ae9cc4f151acb1ec3d6ca5428a
Contents?: true
Size: 957 Bytes
Versions: 21
Compression:
Stored size: 957 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' unless defined?(SupportLite) require 'mail' # Require respecting order of our dependencies FileSet.glob_require('padrino-mailer/**/*.rb', __FILE__) module Padrino ## # This component uses the 'mail' library to create a powerful but simple mailer system within Padrino (and Sinatra). # There is full support for using plain or html content types as well as for attaching files. # The MailerPlugin has many similarities to ActionMailer but is much lighterweight and (arguably) easier to use. # module Mailer ## # Register # # Padrino::Mailer::Helpers # # for Padrino::Application # class << self def registered(app) app.helpers Padrino::Mailer::Helpers end alias :included :registered end end # Mailer end # Padrino
Version data entries
21 entries across 21 versions & 1 rubygems