Sha256: b15f387ba47434bfeb8d35d86b7c8e36acd17d35832944672da82b9de7dfabd4

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

require 'action_mailer'
require 'roadie/action_mailer_extensions'

module Roadie
  # {Roadie::Railtie} registers {Roadie} with the current Rails application
  # It adds another configuration option:
  #
  #     config.roadie.provider = nil
  #
  # You can use this to set a provider yourself.
  #
  # @see Roadie
  # @see AssetProvider
  class Railtie < Rails::Railtie
    config.roadie = ActiveSupport::OrderedOptions.new
    config.roadie.provider = nil

    initializer "roadie.extend_action_mailer" do
      ActionMailer::Base.send :include, Roadie::ActionMailerExtensions
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roadie-2.1.0 lib/roadie/railtie.rb
roadie-2.1.0.pre2 lib/roadie/railtie.rb
roadie-2.1.0.pre1 lib/roadie/railtie.rb