mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update qbo_item.rb
This commit is contained in:
@@ -30,8 +30,9 @@ class QboItem < ActiveRecord::Base
|
|||||||
# Update the item table
|
# Update the item table
|
||||||
items.each { |item|
|
items.each { |item|
|
||||||
qbo_item = QboItem.find_or_create_by(id: item.id)
|
qbo_item = QboItem.find_or_create_by(id: item.id)
|
||||||
qbo_item.update_column(:name, item.name.to_s)
|
qbo_item.name = item.name
|
||||||
qbo_item.update_column(:id, item.id.to_i)
|
qbo_item.id = item.id
|
||||||
|
qbo_item.save
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user