Skip to content

Instantly share code, notes, and snippets.

@pashagray
Created October 9, 2017 10:46
Show Gist options
  • Save pashagray/afb579ffe0d609453a65e61af749fd86 to your computer and use it in GitHub Desktop.
Save pashagray/afb579ffe0d609453a65e61af749fd86 to your computer and use it in GitHub Desktop.
class DestroyUser
include Dry::Transaction
include Dry::Transaction(container: Containers::RecordOperations)
step :find, with: 'operations.find'
step :destroy, with: 'operations.destroy'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment