Class: Draisine::SoapController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/draisine/soap_controller.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



18
19
20
21
22
23
24
25
26
27
# File 'app/controllers/draisine/soap_controller.rb', line 18

def delete
  message = incoming_xml
  if Draisine.sync_soap_operations?
    Draisine::SoapDeleteJob.perform_now(message)
  else
    Draisine::SoapDeleteJob.perform_later(message)
  end

  render xml: xml_response, status: :created
end

#updateObject



7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/draisine/soap_controller.rb', line 7

def update
  message = incoming_xml
  if Draisine.sync_soap_operations?
    Draisine::SoapUpdateJob.perform_now(message)
  else
    Draisine::SoapUpdateJob.perform_later(message)
  end

  render xml: xml_response, status: :created
end