From 95f1c19d46bff3827fd3f01cd184f941ba3c09e6 Mon Sep 17 00:00:00 2001 From: Coontail Date: Tue, 14 Jan 2025 16:43:30 +0100 Subject: [PATCH] Update rails.md --- docs/rails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rails.md b/docs/rails.md index e61d976..20ca442 100644 --- a/docs/rails.md +++ b/docs/rails.md @@ -85,7 +85,7 @@ end Action Policy is only included into `ActionController::Base`. If you want to use it with other base Rails controllers, you have to include it manually: ```ruby -class ApiController < ApplicationController::API +class ApiController < ActionController::API include ActionPolicy::Controller # NOTE: you have to provide authorization context manually as well