From ac7cf07d5d3930d99274be990d2b06fe9324015b Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 13 Jun 2011 07:50:15 -0400 Subject: [PATCH] the duck doesn't need to be punched as hard as I thought... --- lib/jasmine/headless/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine/headless/railtie.rb b/lib/jasmine/headless/railtie.rb index ee857a6..8c3908f 100644 --- a/lib/jasmine/headless/railtie.rb +++ b/lib/jasmine/headless/railtie.rb @@ -31,7 +31,7 @@ module Jasmine if Rails.version >= "3.1.0" desc 'Force generate static assets without an MD5 hash, all assets end with -test.' task 'assets:precompile:for_testing' => :environment do - Rails.application.assets.instance_variable_set(:@digest_class, Digest::JasmineTest) + Rails.application.assets.digest_class = Digest::JasmineTest Rake::Task['assets:precompile'].invoke end