1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Only compile non-js/css under app/assets by default

This commit is contained in:
Joshua Peek 2012-10-16 14:17:41 -05:00
parent 4f4417314c
commit 117d5e3bbb

View file

@ -50,7 +50,7 @@ module Rails
@assets = ActiveSupport::OrderedOptions.new
@assets.enabled = false
@assets.paths = []
@assets.precompile = [ Proc.new { |path| !%w(.js .css).include?(File.extname(path)) },
@assets.precompile = [ Proc.new { |path, fn| fn =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path)) },
/(?:\/|\\|\A)application\.(css|js)$/ ]
@assets.prefix = "/assets"
@assets.version = ''