aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorLuc Donnet2017-11-30 08:42:11 +0100
committerGitHub2017-11-30 08:42:11 +0100
commit232aa40e530699102eaaed6cf39f4b052e6bcc5f (patch)
treee393b0455988ec490789fc57276e3223688813ab /app/controllers
parent37d51a844f080d32bfd10de2c6daa6f3223c539e (diff)
parent7e381cb823641e8e147b2d5ecc3be94aa5e63c44 (diff)
downloadchouette-core-232aa40e530699102eaaed6cf39f4b052e6bcc5f.tar.bz2
Merge pull request #128 from af83/4987-compliance_check-sets_show
4987 compliance check sets show
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/compliance_check_sets_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/compliance_check_sets_controller.rb b/app/controllers/compliance_check_sets_controller.rb
index 175c22191..776275d52 100644
--- a/app/controllers/compliance_check_sets_controller.rb
+++ b/app/controllers/compliance_check_sets_controller.rb
@@ -19,6 +19,14 @@ class ComplianceCheckSetsController < InheritedResources::Base
end
end
+ def show
+ show! do
+ @compliance_check_set = @compliance_check_set.decorate(context: {
+ compliance_check_set: @compliance_check_set
+ })
+ end
+ end
+
def executed
show! do |format|
# But now nobody is aware anymore that `format.html` passes a parameter into the block