Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Spree::Variant.class_eval do
- def options_text
- values = self.option_values.sort_by(&:position)
- values.map! { |ov| ov.presentation }
- values.to_sentence({ :words_connector => ", ", :two_words_connector => ", " })
- end
- end
Add Comment
Please, Sign In to add comment