diff options
author | Rhenium <rhenium@rhe.jp> | 2014-01-31 05:41:00 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2014-01-31 05:41:00 +0900 |
commit | 8196b76ad75842f617fb6841111ff59c4f09e416 (patch) | |
tree | b85529a4fb228d2bb3c3aa2a4b1a777e50d6e18a | |
parent | ad2193eddddae6afd013bac2f3d49bd89eca1217 (diff) | |
download | aclog-8196b76ad75842f617fb6841111ff59c4f09e416.tar.gz |
precompile *.js
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index bc3deca..8844010 100644 --- a/config/application.rb +++ b/config/application.rb @@ -35,7 +35,8 @@ module Aclog ErrorsController.action(:render_error).call(env) end - config.assets.precompile += %w(*.js *.css *.png *.gif) + config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) + config.assets.precompile += [Proc.new { |path, fn| fn =~ /app\/assets/ && %w(.js).include?(File.extname(path)) }] config.generators do |g| g.test_framework :rspec |