Rails 5 changed the initialization order, and now our initializers were running before the `append_assets_path` initializer for each engine, which prepended application assets to the custom assets we prepended in the initializer. Moving the code to the `config.after_initialize` code didn't work either, since the paths added there were ignored by the application. Adding another initializer to the Rails Engine is a hack, but solves the problem.
19 lines
893 B
Ruby
19 lines
893 B
Ruby
# Be sure to restart your server when you modify this file.
|
|
|
|
# Version of your assets, change this if you want to expire all your assets.
|
|
Rails.application.config.assets.version = "1.0"
|
|
|
|
# Add additional assets to the asset load path
|
|
# Rails.application.config.assets.paths << Emoji.images_path
|
|
|
|
# Precompile additional assets.
|
|
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
|
# Rails.application.config.assets.precompile += %w( search.js )
|
|
Rails.application.config.assets.precompile += %w( ckeditor/config.js )
|
|
Rails.application.config.assets.precompile += %w( ie_lt9.js )
|
|
Rails.application.config.assets.precompile += %w( stat_graphs.js )
|
|
Rails.application.config.assets.precompile += %w( print.css )
|
|
Rails.application.config.assets.precompile += %w( ie.css )
|
|
|
|
# Loads custom images and custom fonts before app/assets/images and app/assets/fonts
|