app/services/create_collaboration.rb
# Setups collaboration and returns run or sequence run (depending on provided material type).
Setups collaboration and returns run or sequence run (depending on provided material type).
Setups collaboration and returns run or sequence run ( depending on provided material type ) .
def call
    ActiveRecord::Base.transaction do
      @collaboration_run = CollaborationRun.create!(
        user: @owner,
        collaborators_data_url: @collaborators_data_url
      )
      collaborators = get_collaborators_data
      process_collaborators_data(collaborators)
    end
    @owners_sequence_run || @owners_run
  end
def call ActiveRecord :: Base . transaction do @collaboration_run = CollaborationRun . create! ( user : @owner , collaborators_data_url : @collaborators_data_url ) collaborators = get_collaborators_data process_collaborators_data ( collaborators ) end @owners_sequence_run || @owners_run end
Setups collaboration and returns run or sequence run (depending on provided material type).
Setups collaboration and returns run or sequence run ( depending on provided material type ) .
# Return run or sequence run that belongs to the collaboration owner.