Sha256: bdc9cf8b33b696cf7fec1dfffa46d8364b56326832596db2f31e17940af9cdc1
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
module Admin class Engine < Rails::Engine initializer :assets do |config| # Add all "frontend libraries" (bootstrap etc.) to the asset pipeline load path. # This is necessary because typus uses a nondefault directory structure in vendor/assets. extra_asset_paths = Dir.glob(File.join(root, 'vendor/assets/*/{img,images,css,js}')) Rails.application.config.assets.paths += extra_asset_paths # Add nondefault image directory to the precompile array, otherwise images in there won't # become available for the asset pipeline. Rails.application.config.assets.precompile << %r{^img/.+} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brainsome_typus-4.0.0.beta1 | lib/typus/engine.rb |