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

Refactor helpers as tag classes #10

Merged
merged 16 commits into from
Dec 30, 2022
Merged

Conversation

gael-ian
Copy link
Member

This is a huge refactor of Cooconed view helpers and associated classes.

So far, the structure of the original Cocoon had been kept, with minimal OO programming and huge functional helpers with multiple associated private methods added to ActionView::Base.

This extract helpers logic to dedicated classes and remove almost all methods from ActionView::Base except for the documented helpers.

@gael-ian gael-ian merged commit 843d0a5 into next Dec 30, 2022
@gael-ian gael-ian deleted the refactor-helpers-as-tag-classes branch December 30, 2022 22:20
gael-ian added a commit that referenced this pull request Mar 7, 2023
* Introduce Tag classes and use them to build move link
* Tags generates their own default label
* Decline Tags::Base for each action
* Add missing tests on Tags classes
* Simplify helpers tests now Tag classes are fully tested
* Cleanup after helpers specs refactoring
* Simplify Cocooned::Association::Builder interface
* Add missing tests on Cocooned::Association::Renderer
* Add documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant