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

Fix passing UUID to tags #1280

Merged
merged 4 commits into from
Oct 30, 2020
Merged

Fix passing UUID to tags #1280

merged 4 commits into from
Oct 30, 2020

Conversation

jkthorne
Copy link
Contributor

Purpose

When using UUID as a primary key there are some scaffolds that do not work.

Description

This adds a helper that makes it so the scaffolds work with a UUID. I could add to_s to the text but I dont know if adding an extra call is what would be best for a generic helper.

Copy link
Member

@jwoertink jwoertink left a comment

Choose a reason for hiding this comment

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

Hey, thanks for submitting this! Though, I'm not too sure about it. None of the tags allow for anything aside from String as the inner text. I do agree that if you're using UUID, some of the things are a little funky. I made a small suggestion.

Can you give that a shot and see if the specs all pass that way? If so, then we will just do that and remove the overload.

src/lucky/tags/link_helpers.cr Outdated Show resolved Hide resolved
@paulcsmith paulcsmith changed the title add uuid helper Add uuid helper Oct 21, 2020
@jwoertink jwoertink merged commit 365445b into luckyframework:master Oct 30, 2020
@jwoertink jwoertink changed the title Add uuid helper Fix passing UUID to tags Oct 30, 2020
@jwoertink
Copy link
Member

Thanks for catching this @wontruefree!

@jkthorne
Copy link
Contributor Author

jkthorne commented Nov 2, 2020

@jwoertink Thanks for updating the PR!

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.

3 participants