Class: Gemgento::ProductAttribute

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/gemgento/product_attribute.rb

Overview

Author:

  • Gemgento LLC

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ignoredObject



18
19
20
# File 'app/models/gemgento/product_attribute.rb', line 18

def self.ignored
  %w[sku gemgento_id]
end

Instance Method Details

#mark_deletedObject



22
23
24
# File 'app/models/gemgento/product_attribute.rb', line 22

def mark_deleted
  self.deleted_at = Time.now
end

#mark_deleted!Object



26
27
28
29
# File 'app/models/gemgento/product_attribute.rb', line 26

def mark_deleted!
  mark_deleted
  self.save
end