Class: Workarea::Catalog::Variant

Inherits:
Object
  • Object
show all
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

#activates_with_current_release?, #releasable?, #release_changes, #save_changeset, #skip_changeset

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

assert_valid_config!, async, disable, enable, inline, #run_callbacks

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


20
21
22
23
# File 'app/models/workarea/catalog/variant.rb', line 20

def valid?(*)
  self.name = sku if name.blank?
  super
end