app/concepts/assignment/create_by_system.rb
# TODO: Use Nested() when it's possible to set params
Use Nested() when it's possible to set params
Use Nested () when it ' s possible to set params
def execute_nested_create!(options, params:, last_acting_user:, **)
    result = Assignment::Create.(params, 'current_user' => last_acting_user)
    options['model'] = result['model']
    if result['contract.default']&.errors&.any?
      options['errors'] = result['contract.default'].errors
    end
    result.success?
  end
def execute_nested_create! ( options , params : , last_acting_user : , ** ) result = Assignment :: Create . ( params , 'current_user' => last_acting_user ) options [ 'model' ] = result [ 'model' ] if result [ 'contract.default' ] &. errors &. any? options [ 'errors' ] = result [ 'contract.default' ] . errors end result . success? end
TODO: Use Nested() when it's possible to set params
TODO : Use Nested () when it ' s possible to set params
options
<not_specific>
params
<not_specific>
last_acting_user
<not_specific>