Open tomkadwill opened 7 years ago
Hey @tomkadwill, if you're interested, I've been working on a gem designed to be a drop-in Rails 5 replacement for Declarative Authorization called Authoreyes. It uses the exact same authorization rules DSL syntax. I'm using it comfortably in a production/professional app right now despite the warnings in the README (which probably should be updated).
I'm not sure how the rest of the community feels about it, but I would love to have some Decl Auth users try it out and provide feedback or contributions.
Thanks @zeiv, I'll give it a try :)
@tomkadwill I know it's been awhile, but for you or people in the future who find this, I'd recommend our fork of declarative_authorization. ae_declarative_authorization
adds Rails 5 support, among many other improvements, and we're actively maintaining it since it's a huge part of our app.
our
@dvicory is there any documentation for upgrading from declarative_authorization to your fork? Or everything will continue to work the same there is nothing specific to be changed/added after switching over to your fork? Thanks
@dvicory is there any documentation for upgrading from declarative_authorization to your fork? Or everything will continue to work the same there is nothing specific to be changed/added after switching over to your fork? Thanks
@Dabizlja, there's no explicit documentation on how to do it. What I can say is our internal change from our monkey patched declarative_authorization
(mostly optimizations) to ae_declarative_authorization
was very easy. ae_declarative_authorization
started life from another person's fork of this repo, then we applied our optimization monkey patches. Even with all that history to the gem, we still didn't have to make changes beyond switching require
s and the dependency.
Since the first release, we've continued to add support for more things like Rails 6 and Grape. I know each of these changes were done with an eye towards backwards compatibility to minimize our internal burden of upgrading since we use it extensively. I don't think I can guarantee drop-in compatibility for later releases, but I find it likely the upgrade would be painless and likely consist of simply changing the dependency and perhaps a few require
s, as the major API surface shouldn't have changed.
One big thing I know we included was the removal of the rules browser (looking at the old issue now it seems it may have not worked anyway).
Please try it out and if there's something interesting about your upgrade process, please do let us know with a new issue in ae_declarative_authorization
so that we could add or fix documentation.
I'm using Rails 5. After I install the gem and run
rails g authorization:install
I get the following error:Let me know if this is something that the maintainers want to fix - I would be happy to help with this.