aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
index 21708a37ef..2d9d7556eb 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -160,7 +160,7 @@ module ActionView
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