Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make asset timestamping safe to use on assets that don't exist

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit ef4b8c237a3e2d0bc59f06c5696004dca27efe0a 1 parent 0703149
@jamis jamis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/asset_tag_helper.rb
View
2  actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -160,7 +160,7 @@ def compute_public_path(source, dir, ext)
def rails_asset_id(source)
ENV["RAILS_ASSET_ID"] ||
- File.stat(RAILS_ROOT + "/public/#{source}").mtime.to_i.to_s
+ File.mtime("#{RAILS_ROOT}/public/#{source}").to_i.to_s rescue ""
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.