From fad18e417eda9cf25d1abb38d9555cd26d6d9cac Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Mon, 11 Nov 2013 16:03:28 +0000 Subject: Switch to work with the feature/wip-switch-to-asset-pipeline branch --- lib/alavetelitheme.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/alavetelitheme.rb') diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index 2930ba6..8476e90 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -32,6 +32,15 @@ end # something unique (e.g. yourtheme-custom-routes.rb": $alaveteli_route_extensions << 'custom-routes.rb' +# Prepend the asset directories in this theme to the asset path: +['stylesheets', 'images', 'javascripts'].each do |asset_type| + theme_asset_path = File.join(File.dirname(__FILE__), + '..', + 'assets', + asset_type) + Rails.application.config.assets.paths.unshift theme_asset_path +end + # Tell FastGettext about the theme's translations: look in the theme's # locale-theme directory for a translation in the first place, and if # it isn't found, look in the Alaveteli locale directory next: -- cgit v1.2.3