Sha256: 568dfc488477ac5d841fe6997e595e55386fb8c098758e891ba2c55c1b0df2ce

Contents?: true

Size: 645 Bytes

Versions: 6

Compression:

Stored size: 645 Bytes

Contents

require 'action_mailer'
require 'roadie'
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
      ActiveSupport.on_load(:action_mailer) do
        include Roadie::ActionMailerExtensions
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roadie-2.3.3 lib/roadie/railtie.rb
roadie-2.3.2 lib/roadie/railtie.rb
roadie-2.3.1 lib/roadie/railtie.rb
roadie-2.3.0 lib/roadie/railtie.rb
roadie-2.3.0.pre1 lib/roadie/railtie.rb
roadie-2.2.0 lib/roadie/railtie.rb