Method: Alchemy::Ingredient#as_view_component
- Defined in:
- app/models/alchemy/ingredient.rb
#as_view_component(options: {}, html_options: {}) ⇒ Object
The view component of the ingredient with mapped options.
151 152 153 |
# File 'app/models/alchemy/ingredient.rb', line 151 def as_view_component(options: {}, html_options: {}) view_component_class.new(self, **, html_options: ) end |