Skip to content

Commit

Permalink
Merge pull request #7968 from josh/only-precompile-app-assets-by-default
Browse files Browse the repository at this point in the history
Only compile non-js/css under app/assets by default
  • Loading branch information
rafaelfranca committed Oct 18, 2012
2 parents f4c6ecc + 117d5e3 commit 0dfebbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/application/configuration.rb
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 0dfebbc

Please sign in to comment.