Sha256: e3d625e8da993089a7c5370d93b7852b31086435be863bf13a805ec8ac40a42d
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true class Core::UseCases::<%= [@route_scope_class, @scope_class, @use_case_class].reject { |c| c.empty? }.join("::") %> < RiderKick::UseCases::AbstractUseCase contract do params(Core::UseCases::Contract::Default.new.call) do <% @contract_destroy.each do |field| -%> <%= field %> <% end -%> end end # Set specific return monads at method 'result' include Dry::Monads::Do.for(:result) def result params = yield build_parameter! Core::Repositories::<%= @scope_class%>::<%= @repository_class%>.new(id: params.id).call(builder: true) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rider-kick-0.0.5 | lib/generators/rider_kick/templates/domains/core/use_cases/destroy.rb.tt |
rider-kick-0.0.4 | lib/generators/rider_kick/templates/domains/core/use_cases/destroy.rb.tt |