Skip to content

Instantly share code, notes, and snippets.

@ericraio
Created March 30, 2019 05:05
Show Gist options
  • Save ericraio/186436aa96861371942c6b4f8f2c87ef to your computer and use it in GitHub Desktop.
Save ericraio/186436aa96861371942c6b4f8f2c87ef to your computer and use it in GitHub Desktop.
# frozen_string_literal: true
class Product::ImportService < ImportService
attr_accessor :product_import
def initialize(object = {})
if object.class == ProductImport
@product_import = object
else
@product_import = ProductImport.new(object)
end
end
def importer
@product_import
end
def record_class
Product
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment