The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
What's New in Edge Rails: Cleaning up Your Plugins

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
rwdaigle

Posts: 312
Nickname: rwdaigle
Registered: Feb, 2003

Ryan is a passionate ruby developer with a strong Java background.
What's New in Edge Rails: Cleaning up Your Plugins Posted: Jun 9, 2006 5:55 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by rwdaigle.
Original Post: What's New in Edge Rails: Cleaning up Your Plugins
Feed Title: Ryan's Scraps
Feed URL: http://feeds.feedburner.com/RyansScraps
Feed Description: Ryan Daigle's various technically inclined rants along w/ the "What's new in Edge Rails" series.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by rwdaigle
Latest Posts From Ryan's Scraps

Advertisement

Changesets 4427 and 4440 provide an uninstall hook for plugins. Previously, all that was done when a plugin was uninstalled via ruby script/plugin remove plugin_name was that the plugin directory was deleted.

Now, Rails allows plugin developers to do specific cleanup tasks on uninstall by providing an uninstall hook. This is useful when the plugin provides specific CSS, view or DB resources that can be safely removed when the plugin is uninstalled.

All plugins need to do is provide an uninstall.rb file in the plugin directory (similar to the standard init.rb install file) with the teardown logic specific to that plugin. The plugin template now provides a uninstall.rb file too, so everything is in place for the plugin to properly clean up after itself.

tags: rubyonrails, rails, plugins

Read: What's New in Edge Rails: Cleaning up Your Plugins

Topic: 2do Javado y Jornadas de Informatica UCAB Previous Topic   Next Topic Topic: New RubyForge hardware

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use