This project is archived and is in readonly mode.

#1471 ✓resolved
Sven Fuchs

AssetTag#compute_public_path caching should depend on given parameter

Reported by Sven Fuchs | November 25th, 2008 @ 07:18 PM

I have some classes extending AssetTag and friends (awesome refactoring, Josh!) to allow assets to be cached to different paths depending on an active theme.

Code worked find until recently. This broke it:

Fix is attached. I'm aware that I'm using #compute_public_path which is not protected, but private, so probably not recommended to be used by extending classes. Nonetheless I feel that the offending line is a bug: when compute_public_path takes a parameter source then it should return different results for different sources, or shouldn't it?

Anyway, I guess the patch doesn't hurt anybody :)

I'm adding a separate patch for a test because when looking at the tests for asset_tag_helper I found that the internal api is not tested at all, so I was unsure if there even should be a test for this particular thing. I believe there should be one, so I'll attach the patch for that as well.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket

Referenced by