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_optional_assignment_for_organization!(_options, model:, **)
        return true unless model.class == Assignment &&
                           model.assignable_type == 'Division' &&
                           model.assignable.organization
        organization = model.assignable.organization
        if should_create_automated_organization_assignment?(model, organization)
          receiving_user = User.find(model.receiver_id)
          ::Assignment::CreateBySystem.(
            {}, assignable: organization, last_acting_user: receiving_user
          ).success?
        else
          true
        end
      end
def create_optional_assignment_for_organization! ( _options , model : , ** ) return true unless model . class == Assignment && model . assignable_type == 'Division' && model . assignable . organization organization = model . assignable . organization if should_create_automated_organization_assignment? ( model , organization ) receiving_user = User . find ( model . receiver_id ) :: Assignment :: CreateBySystem . ( { } , assignable : organization , last_acting_user : receiving_user ) . success? else true end 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>