Class: Roadie::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Roadie::Railtie
- Defined in:
- lib/roadie/railtie.rb
Overview
Railtie registers Roadie with the current Rails application It adds configuration options:
config.roadie.enabled = true
Set this to false to disable Roadie completely. This could be useful if
you don't want Roadie in certain environments.
config.roadie.provider = nil
You can use this to set a provider yourself. See {Roadie::AssetProvider}.
config.roadie.after_inlining = lambda do |doc|
doc.css('#products p.desc a[href^="/"]').each do |link|
link['href'] = "http://www.foo.com" + link['href']
end
end
You can use this to set a custom inliner. A custom inliner transforms an outgoing HTML email using application specific rules.
The custom inliner is invoked after the default inliner.A custom inliner can be created using a `lambda` that accepts one parameter
or an object that responds to the `call` method with one parameter.