aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api
diff options
context:
space:
mode:
authorRobert2017-08-11 09:57:55 +0200
committerRobert2017-08-11 09:57:55 +0200
commit8eaa9249825f6eb6d667291fd9aa26bbde1ac7e3 (patch)
treedd79104c7b19f6ca8f2c6c1aebb77d0baf8a12d9 /app/controllers/api
parent70c04d2727179308e98d704c78a668c425b223b9 (diff)
downloadchouette-core-8eaa9249825f6eb6d667291fd9aa26bbde1ac7e3.tar.bz2
initial
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/netex_imports_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/api/v1/netex_imports_controller.rb b/app/controllers/api/v1/netex_imports_controller.rb
index 17eec2ef8..ba7777654 100644
--- a/app/controllers/api/v1/netex_imports_controller.rb
+++ b/app/controllers/api/v1/netex_imports_controller.rb
@@ -40,6 +40,9 @@ module Api
organisation_id: @workbench.organisation_id,
workbench_id: @workbench.id)
@new_referential.save!
+ # TODO: >>> REMOVE ME !!!!
+ ReferentialMetadataKludge.make_metadata_from_name! netex_import_params['name'], referential_id: @new_referential.id
+ # <<< REMOVE ME !!!!
rescue ActiveRecord::RecordInvalid
render json: {errors: @new_referential.errors}, status: 406
finish_action!