diff options
| author | Zakaria BOUZIANE | 2015-05-04 18:22:09 +0200 |
|---|---|---|
| committer | Zakaria BOUZIANE | 2015-05-04 18:22:09 +0200 |
| commit | bc2009a078b1e4f116cdbe109b628dec644eb4d4 (patch) | |
| tree | e13f436b4088be1bcef0951c6433418d09c28681 /app/controllers | |
| parent | a777e5090f9ce5c5ba92262b17b91bc73e18e87f (diff) | |
| download | chouette-core-bc2009a078b1e4f116cdbe109b628dec644eb4d4.tar.bz2 | |
Showing lsValidation from imports
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/imports_controller.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rb index 51607b835..ae0ac063b 100644 --- a/app/controllers/imports_controller.rb +++ b/app/controllers/imports_controller.rb @@ -64,6 +64,19 @@ class ImportsController < ChouetteController redirect_to referential_path(@referential) end end + + def compliance_check + begin + build_breadcrumb :show + @import = resource + #@compliance_check = ComplianceCheck.new @import.datas + render "compliance_checks/show" + rescue Ievkit::Error => error + logger.error("Iev failure : #{error.message}") + flash[:error] = t('iev.failure') + redirect_to referential_path(@referential) + end + end protected alias_method :import, :resource |
