Class: Workarea::Catalog::Variant
- Inherits:
-
Object
- Object
- Workarea::Catalog::Variant
- Includes:
- ApplicationDocument, Details, Ordering, Releasable
- Defined in:
- app/models/workarea/catalog/variant.rb
Instance Method Summary collapse
Methods included from Details
#detail_names, #fetch_detail, #has_detail?, #matches_detail?, #matches_details?, #update_details
Methods included from Ordering
#higher_siblings, #lower_siblings
Methods included from Releasable
#changesets_with_children, #destroy, #in_release, #release_changes, #release_originals, #save_changeset, #skip_changeset, #without_release
Methods included from Segmentable
#active?, #active_segment_ids_with_children, #segmented?, #segments
Methods included from Release::Activation
#activate_with?, #create_activation_changeset, #save_activate_with, #was_active?
Methods included from ApplicationDocument
Methods included from Sidekiq::Callbacks
add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list
Methods included from Mongoid::Document
Instance Method Details
#valid? ⇒ Boolean
20 21 22 23 |
# File 'app/models/workarea/catalog/variant.rb', line 20 def valid?(*) self.name = sku if name.blank? super end |