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

Use view_component for ingredient views #2465

Merged
merged 19 commits into from
May 24, 2023

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented May 3, 2023

What is this pull request for?

Introduce View Components as View classes for Ingredients.

Notable changes (remove if none)

Stops rendering the _view partial for ingredients under app/views/alchemy/ingredients.

Deprecates render the ingredient view directly.

@tvdeyen tvdeyen changed the title View components Use View components May 4, 2023
@tvdeyen tvdeyen force-pushed the view-components branch 3 times, most recently from 1fdb549 to d1eed03 Compare May 10, 2023 06:43
@tvdeyen tvdeyen changed the title Use View components Use View components for ingredient views May 10, 2023
@tvdeyen tvdeyen changed the title Use View components for ingredient views Use view_component for ingredient views May 10, 2023
Need that in order for editors with autoformatting work
correctly. We use standardrb to format, but that uses rubocop
to lint.
Instead of rendering the view partial of the ingredient
we render it view component instead.

Deprecates the ingredients view partials.
@tvdeyen tvdeyen marked this pull request as ready for review May 23, 2023 19:20
@tvdeyen tvdeyen merged commit 4a04814 into AlchemyCMS:main May 24, 2023
@tvdeyen tvdeyen deleted the view-components branch May 24, 2023 07:25
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.

1 participant