Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document undefined local_assigns when using Strict Locals with defaults #52209

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

bensheldon
Copy link
Contributor

@bensheldon bensheldon commented Jun 24, 2024

Redo of #52162, including language suggestions from @skipkayhil.

Now that #52205 has been merged, this documents the update behavior of local_assigns when using Strict Locals with defaults, and still suggests using binding.local_variable_get as a workaround.

@rails-bot rails-bot bot added the docs label Jun 24, 2024
@rafaelfranca rafaelfranca merged commit 862f402 into rails:main Jun 26, 2024
2 of 3 checks passed
rafaelfranca added a commit that referenced this pull request Jun 26, 2024
Document undefined `local_assigns` when using Strict Locals with defaults
@bensheldon bensheldon deleted the strict-local-assigns-defaults branch June 26, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants