aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alavetelitheme.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@garethrees.co.uk>2017-03-22 13:32:37 +0000
committerGareth Rees <gareth@garethrees.co.uk>2017-03-22 13:32:37 +0000
commited5bc5dd15ad7722d97b1c3164a670298d2501e0 (patch)
treef9113ea9a7682893f2f86c64b5a9b8f817d10495 /lib/alavetelitheme.rb
parent82997d1b35d618d2c75acac0dd44e8d69024c7cb (diff)
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
Diffstat (limited to 'lib/alavetelitheme.rb')
-rw-r--r--lib/alavetelitheme.rb1
1 files changed, 1 insertions, 0 deletions
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