diff options
| author | cedricnjanga | 2018-05-29 07:35:32 -0700 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-05-31 14:10:09 +0200 |
| commit | 264122418a29e102061e0dac2ce53a6158ee4c89 (patch) | |
| tree | 79a601ab01a718a2637531bab6ac2fed9f3755f6 /app/helpers | |
| parent | ab00694f49336a326d934ff0bd85b76e2e0a6c23 (diff) | |
| download | chouette-core-264122418a29e102061e0dac2ce53a6158ee4c89.tar.bz2 | |
Refs #7057 Add some improvements to select type view & compliance control table builder on subclass column
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/compliance_control_sets_helper.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/helpers/compliance_control_sets_helper.rb b/app/helpers/compliance_control_sets_helper.rb index 7adb46971..a62b27858 100644 --- a/app/helpers/compliance_control_sets_helper.rb +++ b/app/helpers/compliance_control_sets_helper.rb @@ -84,10 +84,7 @@ module ComplianceControlSetsHelper ), TableBuilderHelper::Column.new( key: :subclass, - attribute: Proc.new do |compliance_control| - key = ComplianceControl.subclass_patterns.key(compliance_control.object.class.object_type) - I18n.t("compliance_controls.filters.subclasses.#{key}") - end + attribute: Proc.new { |compliance_control| compliance_control.object.class.translated_subclass } ), TableBuilderHelper::Column.new( key: :name, |
