diff options
| author | Robert | 2017-08-11 09:57:55 +0200 | 
|---|---|---|
| committer | Robert | 2017-08-11 09:57:55 +0200 | 
| commit | 8eaa9249825f6eb6d667291fd9aa26bbde1ac7e3 (patch) | |
| tree | dd79104c7b19f6ca8f2c6c1aebb77d0baf8a12d9 /app/controllers/api | |
| parent | 70c04d2727179308e98d704c78a668c425b223b9 (diff) | |
| download | chouette-core-8eaa9249825f6eb6d667291fd9aa26bbde1ac7e3.tar.bz2 | |
initial
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/v1/netex_imports_controller.rb | 3 | 
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!  | 
