Class: Alchemy::Ingredients::SelectView
- Defined in:
- app/components/alchemy/ingredients/select_view.rb
Instance Attribute Summary
Attributes inherited from BaseView
Instance Method Summary collapse
Methods inherited from BaseView
Constructor Details
This class inherits a constructor from Alchemy::Ingredients::BaseView
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/components/alchemy/ingredients/select_view.rb', line 4 def call if ingredient.multiple? && value.is_a?(Array) value.to_sentence else super end end |