diff options
| author | Luc Donnet | 2017-09-05 16:16:04 +0200 |
|---|---|---|
| committer | Luc Donnet | 2017-09-05 16:16:04 +0200 |
| commit | 505a05e07dd418f4da1502790d87b71925f1f5f6 (patch) | |
| tree | f319631415ce183c798580b5e89ab851416a92d6 /app | |
| parent | 70e8e93b0ebf4596c0ffd64620415db2450f4595 (diff) | |
| download | chouette-core-505a05e07dd418f4da1502790d87b71925f1f5f6.tar.bz2 | |
Comment call for deleted class ReportConcern
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/export_report.rb | 5 | ||||
| -rw-r--r-- | app/models/import_message_export.rb | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/app/models/export_report.rb b/app/models/export_report.rb index ef54f40ea..3c0788106 100644 --- a/app/models/export_report.rb +++ b/app/models/export_report.rb @@ -1,9 +1,8 @@ class ExportReport - include ReportConcern + #include ReportConcern def initialize( response ) @datas = response.action_report end - -end +end diff --git a/app/models/import_message_export.rb b/app/models/import_message_export.rb index d13a3a21b..d36c7984d 100644 --- a/app/models/import_message_export.rb +++ b/app/models/import_message_export.rb @@ -22,7 +22,7 @@ class ImportMessageExport end def column_names - ["criticity", "message key"] + ["criticity", "message key", "message"] end @@ -38,7 +38,10 @@ class ImportMessageExport CSV.generate(options) do |csv| csv << column_names import_messages.each do |import_message| - csv << [import_message.criticity, import_message.message_key ] + puts import_message.inspect + puts import_message.message_attributes.deep_symbolize_keys.inspect + puts I18n.t("import_messages.#{import_message.message_key}", import_message.message_attributes.deep_symbolize_keys) + csv << [import_message.criticity, import_message.message_key, I18n.t("import_messages.#{import_message.message_key}", import_message.message_attributes.deep_symbolize_keys) ] end end end |
