app/controllers/projects_controller.rb
# Invite either an existing organisation or a new organisation to join the project.
# POST /projects/:id/create_organisation_invite
Invite either an existing organisation or a new organisation to join the project.
Invite either an existing organisation or a new organisation to join the project .
def create_organisation_invite
    if params[:project_invite_presenter] && params[:invited_organisation_id].present?
      create_existing_org_invite
    else
      create_new_org_invite
    end
  end
def create_organisation_invite if params [ :project_invite_presenter ] && params [ :invited_organisation_id ] . present? create_existing_org_invite else create_new_org_invite end end
Invite either an existing organisation or a new organisation to join the project.
Invite either an existing organisation or a new organisation to join the project .