app/models/apidae/selection.rb in apidae-0.9.27 vs app/models/apidae/selection.rb in apidae-0.9.28

- old
+ new

@@ -114,10 +114,10 @@ obj = Obj.find_by_apidae_id(obj_data[:id]) if obj obj = Obj.update_object(obj, obj_data, apidae_project.locales, apidae_project.versions) else obj = Obj.add_object(obj_data, apidae_project.locales, apidae_project.versions) - SelectionObject.create(apidae_selection_id: id, apidae_object_id: added_obj.id) + SelectionObject.create(apidae_selection_id: id, apidae_object_id: obj.id) end if Rails.application.config.respond_to?(:apidae_obj_refresh_callback) Rails.application.config.apidae_obj_refresh_callback.call(obj.apidae_id) end obj