Class: Alchemy::Ingredients::SelectView

Inherits:
BaseView
  • Object
show all
Defined in:
app/components/alchemy/ingredients/select_view.rb

Instance Attribute Summary

Attributes inherited from BaseView

#html_options, #ingredient

Instance Method Summary collapse

Methods inherited from BaseView

#initialize, #render?

Constructor Details

This class inherits a constructor from Alchemy::Ingredients::BaseView

Instance Method Details

#callObject



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