app/concepts/assignable/common_side_effects.rb
# create initial Assignment from system for the creating user
create initial Assignment from system for the creating user
create initial Assignment from system for the creating user
def create_initial_assignment!(options, model:, current_user:, **)
        result = ::Assignment::CreateBySystem.(
          {}, assignable: model, last_acting_user: current_user
        )
        if result.failure?
          result['errors']&.each_entry do |key, value|
            options['contract.default'].errors.add(key, value)
          end
        end
        result.success?
      end
def create_initial_assignment! ( options , model : , current_user : , ** ) result = :: Assignment :: CreateBySystem . ( { } , assignable : model , last_acting_user : current_user ) if result . failure? result [ 'errors' ] &. each_entry do | key , value | options [ 'contract.default' ] . errors . add ( key , value ) end end result . success? end
create initial Assignment from system for the creating user
create initial Assignment from system for the creating user
options
<not_specific>
model
<not_specific>
current_user
<not_specific>