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:
@@ -76,7 +76,13 @@ class QboController < ApplicationController
|
|||||||
entities.each do |entity|
|
entities.each do |entity|
|
||||||
|
|
||||||
id = entity['id'].to_i
|
id = entity['id'].to_i
|
||||||
obj = entity['name'].constantize
|
|
||||||
|
name = entity['name']
|
||||||
|
|
||||||
|
# TODO rename all other models!
|
||||||
|
name.prepend("Qbo") if not name.eql? "Customer"
|
||||||
|
|
||||||
|
obj = name.constantize
|
||||||
|
|
||||||
# for merge events
|
# for merge events
|
||||||
obj.delete(entity['deletedId']) if entity['deletedId']
|
obj.delete(entity['deletedId']) if entity['deletedId']
|
||||||
|
|||||||
Reference in New Issue
Block a user