Guest User

Untitled

a guest
Sep 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Spree::Variant.class_eval do
  2. def options_text
  3. values = self.option_values.sort_by(&:position)
  4. values.map! { |ov| ov.presentation }
  5. values.to_sentence({ :words_connector => ", ", :two_words_connector => ", " })
  6. end
  7. end
Add Comment
Please, Sign In to add comment