diff options
| author | Zakaria BOUZIANE | 2015-05-06 10:38:34 +0200 |
|---|---|---|
| committer | Zakaria BOUZIANE | 2015-05-06 10:38:34 +0200 |
| commit | ed6fd2af69ebecb8d6af496135f1398ef6332b06 (patch) | |
| tree | 6e69aa36cd98edad74091aea3916ec0b445872ae /app/models/import.rb | |
| parent | 1f9feab16cc9d7722be1ed0c495c7eeba555ab9a (diff) | |
| download | chouette-core-ed6fd2af69ebecb8d6af496135f1398ef6332b06.tar.bz2 | |
Showing validation of imports (still css to fix)
Diffstat (limited to 'app/models/import.rb')
| -rw-r--r-- | app/models/import.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/import.rb b/app/models/import.rb index b51a341b3..903da32aa 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -19,6 +19,16 @@ class Import end end + def compliance_check_validation_report + report_path = links["validation_report"] + if report_path + response = Ievkit.get(report_path) + ComplianceCheckResult.new(response) + else + raise Ievkit::IevError("Impossible to access report path link for validation of import") + end + end + def report report_path = links["action_report"] if report_path |
