diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-06-03 22:26:44 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-06-03 22:26:44 +0000 |
commit | 59432fe89b6f8e5352cb845256b265cf5718d27b (patch) | |
tree | 3b0dc86d81014f7c11f35f275cca98aeeb697eaf /railties/lib/rails_generator | |
parent | 68e35f13719934adc8b15e8108cb607ace50197f (diff) | |
download | rails-59432fe89b6f8e5352cb845256b265cf5718d27b.tar.gz rails-59432fe89b6f8e5352cb845256b265cf5718d27b.tar.bz2 rails-59432fe89b6f8e5352cb845256b265cf5718d27b.zip |
Added uninstall.rb hook to plugin handling, such that plugins have a way of removing assets and other artifacts on removal (closes #5003) [takiuchi@drecom.co.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb b/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb index ea5fdf2b7d..8a55952ffe 100644 --- a/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +++ b/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb @@ -17,6 +17,7 @@ class PluginGenerator < Rails::Generator::NamedBase m.template 'Rakefile', "#{plugin_path}/Rakefile" m.template 'init.rb', "#{plugin_path}/init.rb" m.template 'install.rb', "#{plugin_path}/install.rb" + m.template 'uninstall.rb', "#{plugin_path}/uninstall.rb" m.template 'plugin.rb', "#{plugin_path}/lib/#{file_name}.rb" m.template 'tasks.rake', "#{plugin_path}/tasks/#{file_name}_tasks.rake" m.template 'unit_test.rb', "#{plugin_path}/test/#{file_name}_test.rb" |