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/controllers/compliance_controls_controller.rb | |
| 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/controllers/compliance_controls_controller.rb')
| -rw-r--r-- | app/controllers/compliance_controls_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/compliance_controls_controller.rb b/app/controllers/compliance_controls_controller.rb index a20602c63..ac6c54a3c 100644 --- a/app/controllers/compliance_controls_controller.rb +++ b/app/controllers/compliance_controls_controller.rb @@ -5,11 +5,7 @@ class ComplianceControlsController < ChouetteController actions :all, :except => [:index] def select_type - @sti_subclasses = Hash.new - - ComplianceControl.subclass_patterns.each do |key, value| - @sti_subclasses[key] = ComplianceControl.subclasses.select {|klass| klass.object_type == value} - end + @sti_subclasses ||= ComplianceControl.subclasses_to_hash end def show |
