aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets/helpers
diff options
context:
space:
mode:
authorFred Wu <ifredwu@gmail.com>2013-03-20 16:13:30 +1100
committerFred Wu <ifredwu@gmail.com>2013-03-20 16:13:30 +1100
commit687e68d88f5e1a7bb6a2d876fbbc5b8c4571d853 (patch)
treec3d134c5da31e49ad109cbeb5c13b9ae3cd533b0 /actionpack/lib/sprockets/helpers
parent517060ab59c383f912c1be838a6d36afb128288f (diff)
downloadrails-687e68d88f5e1a7bb6a2d876fbbc5b8c4571d853.tar.gz
rails-687e68d88f5e1a7bb6a2d876fbbc5b8c4571d853.tar.bz2
rails-687e68d88f5e1a7bb6a2d876fbbc5b8c4571d853.zip
Fixed assets loading performance in 3.2.13
The PR #8756 uses Sprockets for resolving files that already exists on disk, for those files their extensions don't need to be rewritten. Fixes #9803
Diffstat (limited to 'actionpack/lib/sprockets/helpers')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb
index 51f0cbb2da..243c2e5e50 100644
--- a/actionpack/lib/sprockets/helpers/rails_helper.rb
+++ b/actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -163,7 +163,7 @@ module Sprockets
source
elsif source_ext.blank?
"#{source}.#{ext}"
- elsif exact_match_present?(source)
+ elsif File.exists?(source) || exact_match_present?(source)
source
else
"#{source}.#{ext}"