Skip to content

Commit

Permalink
Only compile non-js/css under app/assets by default
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Oct 16, 2012
1 parent 4f44173 commit 117d5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/application/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 117d5e3

Please sign in to comment.