From f4034b10650ec2c559b5b812d71ef4202df744e1 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 16 Sep 2016 11:52:42 +1000 Subject: [PATCH] Fix spec --- app/helpers/spree/admin/base_helper_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/spree/admin/base_helper_decorator.rb b/app/helpers/spree/admin/base_helper_decorator.rb index 9430ab8733..5398cee35f 100644 --- a/app/helpers/spree/admin/base_helper_decorator.rb +++ b/app/helpers/spree/admin/base_helper_decorator.rb @@ -18,7 +18,7 @@ module Spree options[:class] += 'no-text with-tip' if options[:no_text] html_options = {class: "remove_fields #{options[:class]}", data: {action: 'remove'}, title: t(:remove)} - html_options.merge!(options[:html]) + html_options.merge!(options[:html]) if options.key? :html link_to_with_icon('icon-trash', name, '#', html_options) + f.hidden_field(:_destroy) end