From 64f2f360ec9c27aa9c7545d8ab4678c0af3eaa6c Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 19 Jan 2017 11:37:48 +0000 Subject: Add encoding line to Ruby files Fixes https://github.com/mysociety/alavetelitheme/issues/69. --- lib/alavetelitheme.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/alavetelitheme.rb') diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index c245617..668d92a 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- theme_name = File.split(File.expand_path("../..", __FILE__))[1] theme_name.gsub!('-', '_') THEME_NAME = theme_name -- cgit v1.2.3 From ed5bc5dd15ad7722d97b1c3164a670298d2501e0 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Wed, 22 Mar 2017 13:32:37 +0000 Subject: Move assets to app/assets Latest version of assets:precompile task requires path to match app/assets: https://github.com/rails/sprockets-rails/blob/v2.3.3/lib/sprockets/railtie.rb#L60-L62 --- lib/alavetelitheme.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/alavetelitheme.rb') diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index 668d92a..0658142 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -39,6 +39,7 @@ $alaveteli_route_extensions << 'custom-routes.rb' ['stylesheets', 'images', 'javascripts'].each do |asset_type| theme_asset_path = File.join(File.dirname(__FILE__), '..', + 'app', 'assets', asset_type) Rails.application.config.assets.paths.unshift theme_asset_path -- cgit v1.2.3