aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared
diff options
context:
space:
mode:
authorLuc Donnet2018-03-27 09:29:01 +0200
committerGitHub2018-03-27 09:29:01 +0200
commit7e56064ec6dbb60d00453d39680c2fdd9a462011 (patch)
tree10a2e97f89eaf9aad345fa7d986f1ccd6661c871 /app/views/shared
parentb6124228b93680a797e4cd555ecff71a9889386d (diff)
parent2cbae0fdcfaab4dca13e50755ca031610eb3eedd (diff)
downloadchouette-core-7e56064ec6dbb60d00453d39680c2fdd9a462011.tar.bz2
Merge pull request #391 from af83/6177-compliance-control-metadatas
Refs #6177 Add control attributes to CC#show
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/controls/_metadatas.html.slim8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/views/shared/controls/_metadatas.html.slim b/app/views/shared/controls/_metadatas.html.slim
index 49df06166..80f3936e6 100644
--- a/app/views/shared/controls/_metadatas.html.slim
+++ b/app/views/shared/controls/_metadatas.html.slim
@@ -7,9 +7,5 @@
I18n.t('activerecord.attributes.compliance_control.predicate') => resource.predicate,
I18n.t('activerecord.attributes.compliance_control.prerequisite') => resource.prerequisite,
}.merge( \
- {}.tap do |hash| \
- resource.class.dynamic_attributes.each do |attribute| \
- hash[ComplianceControl.human_attribute_name(attribute)] = resource.send(attribute) \
- end \
- end \
- )
+ compliance_control_metadatas(resource) \
+ ) \ No newline at end of file