Skip to content

Allow embeddables to be blank - #1434

Closed
aseroff wants to merge 4 commits into
SpinaCMS:mainfrom
aseroff:attributeless-embed-fix
Closed

Allow embeddables to be blank#1434
aseroff wants to merge 4 commits into
SpinaCMS:mainfrom
aseroff:attributeless-embed-fix

Conversation

@aseroff

@aseroff aseroff commented May 21, 2026

Copy link
Copy Markdown
Contributor

to support embeddables without any attributes.

Context

#1433

Changes proposed in this pull request

loosen the strong params with params.permit(embeddable: {}).fetch(:embeddable, {})

Guidance to review

Million ways to skin this cat, this was just my take on it.

aseroff added 2 commits May 21, 2026 16:11
to support embeddables without any attributes
@Bramjetten

Copy link
Copy Markdown
Contributor

Looks fine, but two remarks:

  • test doesn't pass
  • what kind of objects without attributes do you want to embed?

@aseroff

aseroff commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

Ah, my bad. I'll resubmit once I've figured out the test issues.

I have a form that has to sit inside text content. Previously I just set it up with an unnecessary attribute just to save it. Seemed worth fixing.

@aseroff aseroff closed this May 22, 2026
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