diff options
| author | cedricnjanga | 2017-09-06 12:15:17 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-09-06 12:15:17 +0200 |
| commit | cb87df36c48482b1eb08972be7adcf1a0811cc64 (patch) | |
| tree | 23181950b5394ec5daea7f71f1e08b9374d94767 /app/controllers | |
| parent | 2f8897c500f547a752bb27079257ec205727e743 (diff) | |
| parent | c9d193f91d3cfa22f64581bc0291aa25eaae6779 (diff) | |
| download | chouette-core-cb87df36c48482b1eb08972be7adcf1a0811cc64.tar.bz2 | |
Merge branch 'master' of github.com:af83/stif-boiv
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/api/v1/netex_imports_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/netex_imports_controller.rb b/app/controllers/api/v1/netex_imports_controller.rb index 046802ff9..fc85e35dd 100644 --- a/app/controllers/api/v1/netex_imports_controller.rb +++ b/app/controllers/api/v1/netex_imports_controller.rb @@ -41,7 +41,7 @@ module Api unless @netex_import.referential Rails.logger.info "Can't create referential for import #{@netex_import.id}: #{@new_referential.inspect} #{@new_referential.metadatas.inspect} #{@new_referential.errors.full_messages}" - @netex_import.messages.create criticity: :error, message_key: "cant_create_referential" + @netex_import.messages.create criticity: :error, message_key: "referential_creation" end rescue ActiveRecord::RecordInvalid render json: {errors: @netex_import.errors}, status: 406 |
