diff options
| author | Teddy Wing | 2018-01-25 16:30:48 +0100 |
|---|---|---|
| committer | Zog | 2018-01-25 17:19:22 +0100 |
| commit | 1555c56450b0b0c12d1aa4f5977161c193cfe0cb (patch) | |
| tree | dc674741f6e8bf63d1ffab70859529f4c3fd4e1a | |
| parent | 988d074946990dc72e41af4d5fa1839fdb39d59e (diff) | |
| download | chouette-core-1555c56450b0b0c12d1aa4f5977161c193cfe0cb.tar.bz2 | |
ComplianceControlSetDecorator: Remove unnecessary `href`s
Johan pointed out
(https://github.com/af83/stif-boiv/commit/cd2892277df0af1e1eaf2373adf0068a77f07a6e)
that these `href`s aren't needed as the action links decorator will
infer them automatically.
Refs #5586
| -rw-r--r-- | app/decorators/compliance_control_set_decorator.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/decorators/compliance_control_set_decorator.rb b/app/decorators/compliance_control_set_decorator.rb index 01f51133d..387822c67 100644 --- a/app/decorators/compliance_control_set_decorator.rb +++ b/app/decorators/compliance_control_set_decorator.rb @@ -3,13 +3,11 @@ class ComplianceControlSetDecorator < AF83::Decorator create_action_link do |l| l.content t('compliance_control_sets.actions.new') - l.href h.new_compliance_control_set_path end with_instance_decorator do |instance_decorator| instance_decorator.edit_action_link do |l| l.content t('compliance_control_sets.actions.edit') - l.href { h.edit_compliance_control_set_path(object.id) } end instance_decorator.action_link policy: :clone, secondary: :show do |l| |
