Sha256: a40a3816259ac8f9ff4d9f69d76417fcc62b0dfd13eda92a20ac1286006ae335

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

require 'tilt'
require File.dirname(__FILE__) + '/support_lite'
require 'pony'
Dir[File.dirname(__FILE__) + '/mailer_plugin/**/*.rb'].each { |file| load file }

module Sinatra
  module MailerPlugin
    def self.registered(app)
      MailerBase::views_path = app.views
    end
  end

  register MailerPlugin
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
darkhelmet-sinatra_more-0.3.36 lib/sinatra/mailer_plugin.rb
darkhelmet-sinatra_more-0.3.35 lib/sinatra/mailer_plugin.rb
darkhelmet-sinatra_more-0.3.34 lib/sinatra/mailer_plugin.rb
darkhelmet-sinatra_more-0.3.33 lib/sinatra/mailer_plugin.rb