How do I use rails 2.3.8 with declarative authorization on heroku?
help rails 3 came out yesterday, we have a fully functional rails 2.3.8 app, but our deployment on he开发者_如何学Croku doesn't work because declarative_authorization demands rails 2.1 or higher
That is a very big problem, how can I solve it, any quick hacks, workarounds?
Make sure your .gems
file starts with:
rails --version=2.3.8
But as you've stated, declarative_authorization will then go an install the Rails 3.0.0 gems over the top of your rails install, breaking the lot. You can get around this in your gems manifest, by using:
declarative_authorization --ignore-dependencies
Of course, you'll also need to separately include each dependency for declarative_authorization in your gems manifest.
精彩评论