Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Added action_policy Ruby Gem (#9)
Browse files Browse the repository at this point in the history
* Added action_policy Ruby Gem
  • Loading branch information
igor-alexandrov authored Feb 13, 2023
1 parent 4c1c17b commit bebc2f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/curated/category.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ def self.name

class Authentication < Base; end

class Authorozation < Base; end

class Other < Base; end
end
13 changes: 13 additions & 0 deletions lib/ruby/action_policy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

class Curated::ActionPolicy < Curated::RubyGem
package 'action_policy'
homepage 'https://github.com/palkan/action_policy'
category Category::Authorozation

pros '[Pre-checks](https://actionpolicy.evilmartians.io/#/pre_checks) allow to avoid a lot of boilerplate code.'
pros '[Caching](https://actionpolicy.evilmartians.io/#/caching) allows to avoid unnecessary database queries.'
pros 'Can be included into any class, not only controllers.'

comment 'ActionPolicy is offen called "Pundit on steroids". If you already use Pundit, you can easily [migrate to ActionPolicy](https://actionpolicy.evilmartians.io/#/./pundit_migration).'
end

0 comments on commit bebc2f3

Please sign in to comment.