aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGuillaume2017-11-22 14:55:05 +0100
committerGuillaume2017-11-22 14:55:05 +0100
commitcf8c8352bd4b5493c3e1cdfb8ea27c78ac9abab0 (patch)
treef03ad3aae1427a560c09a443b88fc23a4c2c8265 /app/controllers
parentacb37189bea8e0bd2c36d9b02042a8e3ee5bb238 (diff)
downloadchouette-core-cf8c8352bd4b5493c3e1cdfb8ea27c78ac9abab0.tar.bz2
Refs #4987 create 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