Action Policy
Next Rails
Our great sponsors
Action Policy | Next Rails | |
---|---|---|
10 | 4 | |
1,333 | 449 | |
- | 2.0% | |
5.7 | 6.5 | |
9 days ago | 6 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Action Policy
-
Using Action Policy for a Ruby on Rails App: The Basics
Action Policy is a flexible, extensible, and performant authorization framework for Ruby and Rails apps. It uses multiple caching strategies out of the box, making it very fast, especially if your authorization rules require database queries.
-
Pundit VS Action Policy - a user suggested alternative
2 projects | 2 Jul 2023
Action Policy is the latest Authorization framework I've seen recommended. What is more, it is maintained by the nice and experienced team from Evil Martians.
-
GitHub - keygen/api: an open, source-available software licensing and distribution API built with Ruby on Rails
Lots of goodies here, such as token authentication, role- and permission-based authorization (including a move from Pundit to ActionPolicy), and how I test the API end-to-end using *raises flame shield* Cucumber.
- Authentication, Roles, and Authorization... oh my.
-
Five Ruby Gems for Authentication and Authorization
Also, ActionPolicy is better than Pundit for most applications. Give it a try.
-
Concerns about authorization when going in production
Use Action Policy or Pundit, and write tests for your policies. Authz is worth testing with near complete coverage.
- Service Objects (with dry-monads) and authorization
-
Access control gem for your Rails application (the 2nd)
You may ask what's makes Active Entry better or different from other gems like Pundit, Action Policy (especially), or CanCanCan.
-
Rails: How to Reduce Friction at the Authorization Layer
At work, we've recently faced similar issues and moved to ActionPolicy as a result. It's designed slightly differently, but there is a lot of overlap with what John came up with.
Next Rails
-
Update Rails 6.1 a Rails 7
Next Rails
-
How to upgrade a Ruby on Rails application?
Dual booting: https://github.com/fastruby/next_rails and https://github.com/shopify/bootboot
-
Upgrading a legacy Ruby and Rails application.
If you want to try doing it without all the steps - https://github.com/fastruby/next_rails is pretty helpful. Otherwise, like others have said, just step through and update along the way
-
To Ruby from Python
For each version there is an upgrade page. Eg:
- https://guides.rubyonrails.org/v4.1/upgrading_ruby_on_rails....
- https://guides.rubyonrails.org/v5.0/upgrading_ruby_on_rails....
- https://guides.rubyonrails.org/v5.1/upgrading_ruby_on_rails....
You might want to give a try to this gem: https://github.com/fastruby/next_rails. I did not used it so far but I would have a Rails 4 app I will probably try to use it.
What are some alternatives?
Pundit - Minimal authorization through OO design and pure Ruby classes
RatyRate Stars Rating Gem - :star: A Ruby Gem that wraps the functionality of jQuery Raty library, and provides optional IMDB style rating.
CanCanCan - The authorization Gem for Ruby on Rails.
Plutus - A Ruby on Rails Engine which provides a double entry accounting system for your application
rolify - Role management library with resource scoping
jay_doubleu_tee - A JWT authorization middleware for any web application.
banken - Simple and lightweight authorization library for Rails
AccessGranted - Multi-role and whitelist based authorization gem for Rails (and not only Rails!)
Authority
Declarative Authorization - An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails
KittyPolicy - Kitty Policy Ruby Authorization Gem