Class: Spree::Variants::VisableOptionsPresenter

Inherits:
OptionsPresenter
  • Object
show all
Defined in:
app/presenters/spree/variants/visable_options_presenter.rb

Instance Method Summary collapse

Instance Method Details

#to_sentenceObject

override



7
8
9
10
11
12
13
# File 'app/presenters/spree/variants/visable_options_presenter.rb', line 7

def to_sentence
  options = visible_option_values
  options = sort_options(options)
  options = present_options(options)

  join_options(options)
end