dfl / rest_in_place forked from janv/rest_in_place

A RESTful Inplace-Editor

This URL has Read+Write access

rest_in_place / uninstall.rb
100644 8 lines (8 sloc) 0.298 kb
1
2
3
4
5
6
7
8
# Uninstall hook code here
puts "Deleting files..."
dir = "javascripts"
%w[jquery.rest_in_place.js mootools.rest_in_place.js rest_in_place.js].each do |js_file|
  dest_file = File.join(RAILS_ROOT, "public", dir, js_file)
  FileUtils.rm(dest_file)
end
puts "Files deleted - Uninstallation complete!"