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 Components gem #209

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Use View Components gem #209

wants to merge 5 commits into from

Conversation

klyonrad
Copy link
Owner

No description provided.

# frozen_string_literal: true

class EditCocktailRecipeButtonComponent < ViewComponent::Base
def initialize(record:, content: 'Edit', admin: false)

Choose a reason for hiding this comment

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

EditCocktailRecipeButtonComponent#initialize has boolean parameter 'admin'

Read more about it here.

@sourcelevel-bot
Copy link

SourceLevel has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).

See more details about this review.

def ingredient
return @recipe_part.ingredient_name if @recipe_part.strict

@recipe_part.category_name
Copy link
Owner Author

Choose a reason for hiding this comment

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

No test coverage

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