Class: Spree::OptionValue

Inherits:
Base
  • Object
show all
Defined in:
app/models/spree/option_value.rb

Instance Method Summary collapse

Methods inherited from Base

page

Methods included from Preferences::Preferable

#clear_preferences, #default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Instance Method Details

#touch_all_variantsObject


12
13
14
# File 'app/models/spree/option_value.rb', line 12

def touch_all_variants
  variants.update_all(updated_at: Time.current)
end