Precompile Rails Admin assets
Rails Admin adds its CSS and Javascript assets to the asset pipeline
in an initializer, which doesn't run if config.assets.initialize_on_precompile
is disabled. This manually adds those assets in config/application.rb to make
sure they get precompiled on each deploy.
See 579785c120
This commit is contained in:
parent
2cbf383fbb
commit
87ceabc0ba
1 changed files with 6 additions and 0 deletions
|
|
@ -88,6 +88,12 @@ module Diaspora
|
||||||
"bootstrap-responsive.css", "default.css", "login.css", "mobile.css", "new-templates.css",
|
"bootstrap-responsive.css", "default.css", "login.css", "mobile.css", "new-templates.css",
|
||||||
"rtl.css" ]
|
"rtl.css" ]
|
||||||
|
|
||||||
|
# Rails Admin - these assets need to be added here since the Engine initializer
|
||||||
|
# doesn't run with initialize_on_precompile disabled. This list is taken
|
||||||
|
# directly from the Rails Admin Engine initializer.
|
||||||
|
config.assets.precompile += ['rails_admin/rails_admin.js', 'rails_admin/rails_admin.css',
|
||||||
|
'rails_admin/jquery.colorpicker.js', 'rails_admin/jquery.colorpicker.css']
|
||||||
|
|
||||||
# Version of your assets, change this if you want to expire all your assets
|
# Version of your assets, change this if you want to expire all your assets
|
||||||
config.assets.version = '1.0'
|
config.assets.version = '1.0'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue