Browse Source

feat: remove create_managing_agent

pull/954/head
natdeanlewissoftwire 4 years ago
parent
commit
5147836220
  1. 4
      app/controllers/organisation_relationships_controller.rb

4
app/controllers/organisation_relationships_controller.rb

@ -61,10 +61,6 @@ class OrganisationRelationshipsController < ApplicationController
redirect_to housing_providers_organisation_path(related_organisation_id:)
end
def create_managing_agent
create(child_organisation_id: related_organisation_id, parent_organisation_id: @organisation.id, relationship_type: 1)
end
def create(child_organisation_id:, parent_organisation_id:, relationship_type:)
@resource = OrganisationRelationship.new(child_organisation_id:, parent_organisation_id:, relationship_type:)
@resource.save!

Loading…
Cancel
Save