Skip to content
Browse files

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

  • Loading branch information...
1 parent 4f44173 commit 117d5e3bbb2d24a1bd4f6d5e18f6fed87c4dc344 @josh josh committed Oct 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/application/configuration.rb
View
2 railties/lib/rails/application/configuration.rb
@@ -50,7 +50,7 @@ def initialize(*)
@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 = ''

3 comments on commit 117d5e3

@gkop
gkop commented on 117d5e3 Oct 24, 2012

Curious what the reason for this change is.

@rafaelfranca
Ruby on Rails member
@gkop
gkop commented on 117d5e3 Oct 24, 2012

Ahh thanks @rafaelfranca .

Please sign in to comment.
Something went wrong with that request. Please try again.