开发者

How do I use rails 2.3.8 with declarative authorization on heroku?

开发者 https://www.devze.com 2023-01-14 12:08 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号