Sha256: 9628ac7273a44a245e01c60472501b50a33b37830cb4aaaeb33032acede33f3f
Contents?: true
Size: 909 Bytes
Versions: 5
Compression:
Stored size: 909 Bytes
Contents
require 'rails' module Roadie module Rails class Railtie < ::Rails::Railtie config.roadie = Roadie::Rails::Options.new initializer "roadie-rails.setup" do |app| config.roadie.asset_providers = [ Roadie::FilesystemProvider.new(::Rails.root.join("public").to_s), ] # Saying config.assets.enabled here does not work in Rails 3.1-3.2, but # APP.config.assets work. There is a difference between "config" and # "app.config" on those versions. if app.config.respond_to?(:assets) && app.config.assets.enabled != false if app.assets config.roadie.asset_providers << AssetPipelineProvider.new(app.assets) else app.config.assets.configure do |env| config.roadie.asset_providers << AssetPipelineProvider.new(env) end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems