Module: Comable::Stock::Csvable
- Extended by:
- ActiveSupport::Concern
- Includes:
- Importable
- Included in:
- Comable::Stock
- Defined in:
- app/models/comable/stock/csvable.rb
Instance Method Summary collapse
Instance Method Details
#product_code=(code) ⇒ Object
20 21 22 23 |
# File 'app/models/comable/stock/csvable.rb', line 20 def product_code=(code) return if product_code == code self.product = Comable::Product.find_by(code: code) end |