Skip to content

docs: add Pundit policy adapter examples#13

Merged
kholdrex merged 1 commit into
masterfrom
docs/pundit-policy-adapter-examples
Jun 2, 2026
Merged

docs: add Pundit policy adapter examples#13
kholdrex merged 1 commit into
masterfrom
docs/pundit-policy-adapter-examples

Conversation

@kholdrex

@kholdrex kholdrex commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

Adds Pundit-focused policy adapter guidance for Rails reporting endpoints. The guide shows how to keep CodeToQuery behind existing authorization, return structured fail-closed predicates, and avoid logging sensitive prompts or bind values.

Changes

  • Adds a Pundit policy adapter examples guide covering tenant, account, and user predicates.
  • Links the guide from the README policy adapter section.
  • Records the documentation addition in the changelog.
  • Packages docs files with the gem so README links resolve from packaged documentation.

Test plan

  • Verified Markdown links resolve locally.
  • Verified Ruby snippets in the new guide parse successfully.
  • Verified the gem builds and includes the new docs page, README, and changelog.
  • Ran whitespace checks on the staged diff.

@kholdrex kholdrex merged commit 60e5f68 into master Jun 2, 2026
34 checks passed
@kholdrex kholdrex deleted the docs/pundit-policy-adapter-examples branch June 2, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant