From 69175bb2f4637eb37db01433d6d3a6d63622a5ff Mon Sep 17 00:00:00 2001 From: Nicholas Firth-McCoy Date: Sun, 14 Feb 2010 11:48:51 +1100 Subject: [PATCH] Removed file better_form.js when uninstalling plugin --- uninstall.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/uninstall.rb b/uninstall.rb index 9738333..0f0b949 100644 --- a/uninstall.rb +++ b/uninstall.rb @@ -1 +1,9 @@ -# Uninstall hook code here +# Remove better_form.js from public/javascripts/ +path = "public/javascripts/better_form.js" +puts "Removing #{path}" +begin + File.remove(path) +rescue Exception => e + puts "Unable to remove #{path}" + puts e +end