Sync asset configuration with Rails 4.1.4 defaults

Ref #1705
This commit is contained in:
Dan Rice 2014-07-03 22:05:53 -04:00
parent 9a69b170fe
commit c6a8e0f498
4 changed files with 21 additions and 17 deletions

View file

@ -49,18 +49,6 @@ module Tracksapp
# Set timezone of dates in database
config.active_record.default_timezone = :utc
# Disable loading of the full environment when precompiling assets
config.assets.initialize_on_precompile = false
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
# add /app/assets/swfs to asset pipeline for charts
config.assets.paths << Rails.root.join("app", "assets", "swfs")
# add print and login css to assets
config.assets.precompile += %w(login.css print.css mobile.css)
# configure Tracks to handle deployment in a subdir
config.action_controller.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['subdir']