mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo_controller.rb
This commit is contained in:
@@ -93,11 +93,11 @@ class QboController < ApplicationController
|
|||||||
obj = name.constantize
|
obj = name.constantize
|
||||||
|
|
||||||
# for merge events
|
# for merge events
|
||||||
obj.delete(entity['deletedId']) if entity['deletedId']
|
obj.destroy(entity['deletedId']) if entity['deletedId']
|
||||||
|
|
||||||
#Check to see if we are deleting a record
|
#Check to see if we are deleting a record
|
||||||
if entity['operation'].eql? "Delete"
|
if entity['operation'].eql? "Delete"
|
||||||
obj.delete(id)
|
obj.destroy(id)
|
||||||
#if not then update!
|
#if not then update!
|
||||||
else
|
else
|
||||||
obj.sync_by_id(id)
|
obj.sync_by_id(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user