Skip to content

Commit

Permalink
Update rails.md
Browse files Browse the repository at this point in the history
  • Loading branch information
coontail authored and palkan committed Jan 15, 2025
1 parent 1f7b80b commit 95f1c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95f1c19

Please sign in to comment.