Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7968 from josh/only-precompile-app-assets-by-default

Only compile non-js/css under app/assets by default
  • Loading branch information...
commit 0dfebbcd8ef05466e98e1b942970c3d9d11df6a2 2 parents f4c6ecc + 117d5e3
@rafaelfranca rafaelfranca authored
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 = ''
Please sign in to comment.
Something went wrong with that request. Please try again.