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

Allow consistent permitting classes #795

Merged

Conversation

michaelherold
Copy link
Contributor

This is a 🙋 feature or enhancement.

Summary

By default, Bridgetown expects to be able to load its special Rb class for YAML front matter. The original implementation made it hard to have extra permitted classes in front matter while retaining that expectation.

This change makes it so the default permitted classes are merged into any passed permitted classes across both string and file loading.

Context

While digging into ways that we could have a consistent YAML store for #777, I discovered this papercut.

By default, Bridgetown expects to be able to load its special Rb class
for YAML front matter. The original implementation made it hard to have
extra permitted classes in front matter while retaining that
expectation.

This change makes it so the default permitted classes are merged into
any passed permitted classes across both string and file loading.
@jaredcwhite jaredcwhite merged commit 1bf58eb into bridgetownrb:main Oct 23, 2023
4 checks passed
@michaelherold michaelherold deleted the consistent-permitted-classes branch October 24, 2023 04:27
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