Open jagthedrummer opened 10 years ago
hey @jagthedrummer thanks for the report interesting issue. Couldn't get that error yet though (I tried with spree_auth_device overrides) will try again with your spree wishlist example. Honestly I can't tell if deface works with rails cache out of the box but it sounds like something worth looking into.
Hey @jagthedrummer, do you have an application which reproduces this problem? That'd be a great help.
I'm trying to implement Russian doll style fragment caching in my Spree app. In general this works really well, but I'm running into problems when I have a Deface override that tries to alter something inside of a <% cache ... %> block.
For example, I'm trying to use the
spree_wishlist
gem, which contains this override:I have a custom version of
views/spree/products/show.html.erb
that looks something like this:If I comment out the override in the
spree_wishlist
gem then theproducts/show
pages will load. OR if I uncomment the override code, but remove thecache
block theproducts/show
pages will also load. With both the override in place and thecache
block present I get the following stack trace. Is there a way to use Deface and fragment caching together?