Skip to content

fix: allow_forbidden_field_for_relationships_by_default? missing the ? - #2812

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
frankdugan3:main
Aug 1, 2026
Merged

fix: allow_forbidden_field_for_relationships_by_default? missing the ?#2812
zachdaniel merged 1 commit into
ash-project:mainfrom
frankdugan3:main

Conversation

@frankdugan3

Copy link
Copy Markdown
Contributor

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

The key for the config did not match the documentation/generators.

type: :boolean,
default:
Application.compile_env(:ash, :allow_forbidden_field_for_relationships_by_default, false),
Application.compile_env(:ash, :allow_forbidden_field_for_relationships_by_default?, false),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're going to have to check for both now to avoid a breaking change 😢

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added both variants via an ||. I don't mind any nits if you want to do it a different way.

@zachdaniel
zachdaniel merged commit 769a7dd into ash-project:main Aug 1, 2026
41 of 49 checks passed
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.

2 participants