hax to make this work with Rails 4.1.0.beta1

I can’t believe how many forks there are of this project