sikachu / sprockets-redirect

A Rack middleware for Rails >= 3.1.0 with asset pipeline and asset digest enabled. This middleware is used to redirect any request to static asset without a digest to the version with digest in its filename by reading the assets manifest file generated after you run `rake assets:precompile`
http://rubygems.org/gems/sprockets-redirect
MIT License
72 stars 26 forks source link

Rails4 support #3

Closed kjg closed 10 years ago

kjg commented 11 years ago

Changes from a few contributors to support Rails 4

Some important changes

This patch includes features for all of these changes

kdonovan commented 11 years ago

+1. Since Rails 4 removes non-digest asset precompilation, compatibility would be really helpful.

sbleon commented 10 years ago

:+1: this fork is working for us with Rails 4. Please merge it!

sikachu commented 10 years ago

I've applied another fix and released 0.2.0. Please try out and see if it fixes the issue.

sikachu commented 10 years ago

Oh, and I didn't merge this patch in because I want to maintain the compatibility between Rails 3 and Rails 4, and I found out a better way to figured out the digest path. Thank you for your patch.

sbleon commented 10 years ago

@sikachu the recent changes in master/2.0 work for me in Rails 4. Thanks!