We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Using decent_exposure together with pundit, you get something similar to the load_and_authorize_resource that cancan 'used' to have.
decent_exposure
pundit
load_and_authorize_resource
cancan
Just use this custom strategy:
class PunditAuthorizationStrategy < DecentExposure::StrongParametersStrategy delegate :authorize, :policy_scope, to: :controller def collection_resource policy_scope super end def resource super.tap { |r| authorize r } end end