From f062cb5f314bebc44cc306e43984641139846b5b Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Fri, 27 Mar 2015 12:24:17 +0200 Subject: [PATCH] Added fonts precompile --- config/application.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/application.rb b/config/application.rb index 4d908932e..87fdf723d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -33,6 +33,12 @@ module Registry # Load all model subdirs config.autoload_paths += Dir[Rails.root.join('app', 'models', '**/')] + # Add the fonts path + config.assets.paths << Rails.root.join('vendor', 'assets', 'fonts') + + # Precompile additional assets + config.assets.precompile += %w(*.svg *.eot *.woff *.ttf) + # Active Record used to suppresses errors raised within # `after_rollback`/`after_commit` callbacks and only printed them to the logs. # In the next version, these errors will no longer be suppressed.