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

Alias dig to search #18

Open
jho406 opened this issue May 30, 2024 · 0 comments
Open

Alias dig to search #18

jho406 opened this issue May 30, 2024 · 0 comments

Comments

@jho406
Copy link
Contributor

jho406 commented May 30, 2024

props_template allows for traversing into a template https://github.com/thoughtbot/props_template?tab=readme-ov-file#traversing. Right now, that ability is enabled using thesearch: option on a block.

json.data(search: traversal_path) do
 .....
end

I would like to alias search to dig as that more closely aligns with the terminology used in https://thoughtbot.github.io/superglue/#/traversal-guide.

Since we don't want to break existing functionality, lets continue to allow search to work. We'll need to update documentation in this repo as well via a quick rename.

@jho406 jho406 added invalid This doesn't seem right question Further information is requested and removed invalid This doesn't seem right question Further information is requested labels May 30, 2024
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

No branches or pull requests

1 participant