Sha256: 0b38f49fa5467b15304eaaafa97bf4962530b059920fd2ece6ce6efd5237b054

Contents?: true

Size: 160 Bytes

Versions: 5

Compression:

Stored size: 160 Bytes

Contents

class CreateUserInteractor < Zertico::Interactor
  def perform(attributes)
    @user = User.create(attributes)
  end

  def rollback
    @user.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_user_interactor.rb
zertico-2.0.0.alpha.3 spec/fake_app/app/interactors/create_user_interactor.rb
zertico-2.0.0.alpha.2 spec/fake_app/app/interactors/create_user_interactor.rb
zertico-2.0.0.alpha.1 spec/fake_app/app/interactors/create_user_interactor.rb
zertico-1.3.0 spec/fake_app/interactors/create_user_interactor.rb