From b176da9a2e0f5b08df20f0f5083c854b3137af84 Mon Sep 17 00:00:00 2001 From: Jim Remsik and Sandro Turriate Date: Sat, 30 May 2009 18:19:40 -0400 Subject: [PATCH] Use cache_asset_timestamp accessor - Allows stubbing when needed. --- .../lib/action_view/helpers/asset_tag_helper.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index a32beb6..a4c8db1 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -576,13 +576,13 @@ module ActionView if asset_id = ENV["RAILS_ASSET_ID"] asset_id else - if @@cache_asset_timestamps && (asset_id = @@asset_timestamps_cache[source]) + if AssetTagHelper.cache_asset_timestamps && (asset_id = @@asset_timestamps_cache[source]) asset_id else path = File.join(ASSETS_DIR, source) asset_id = File.exist?(path) ? File.mtime(path).to_i.to_s : '' - if @@cache_asset_timestamps + if AssetTagHelper.cache_asset_timestamps @@asset_timestamps_cache_guard.synchronize do @@asset_timestamps_cache[source] = asset_id end -- 1.6.3.1