Sha256: 1be6453f22e4c5a104302e7675e45ddfbea793345c223e7371e9e321e00412aa

Contents?: true

Size: 172 Bytes

Versions: 5

Compression:

Stored size: 172 Bytes

Contents

class CreateProductInteractor < Zertico::Interactor
  def perform(attributes)
    @product = Product.create(attributes)
  end

  def rollback
    @product.destroy
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zertico-2.0.0.beta.1 spec/fake_app/app/interactors/create_product_interactor.rb
zertico-2.0.0.alpha.3 spec/fake_app/app/interactors/create_product_interactor.rb
zertico-2.0.0.alpha.2 spec/fake_app/app/interactors/create_product_interactor.rb
zertico-2.0.0.alpha.1 spec/fake_app/app/interactors/create_product_interactor.rb
zertico-1.3.0 spec/fake_app/interactors/create_product_interactor.rb