From 92107992f0a4189d46adb604f1b889684eb6aab8 Mon Sep 17 00:00:00 2001 From: Trevor Hinesley Date: Thu, 10 Apr 2014 13:36:25 -0500 Subject: [PATCH] Added deletable_type --- app/helpers/abracadabra/rails/view_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/abracadabra/rails/view_helper.rb b/app/helpers/abracadabra/rails/view_helper.rb index 29a9676..5c1689e 100644 --- a/app/helpers/abracadabra/rails/view_helper.rb +++ b/app/helpers/abracadabra/rails/view_helper.rb @@ -30,7 +30,7 @@ def click_to_edit(instance, options) end data_type = options[:type].to_s.gsub(/^j+s+$/, "script") || "script" - deletable_type = options[:deletable_type] || "script" + deletable_type = options[:deletable_type].to_s.gsub(/^j+s+$/, "script") || "script" link_to( value,