From cc2d6a0b93251fce06bab15c52dbe0a5d5a8342c Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 31 Mar 2008 06:53:44 +0000 Subject: Allow files in plugins to be reloaded like the rest of the application. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/CHANGELOG | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'railties/CHANGELOG') diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 7076d58118..2143504b33 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,20 @@ *SVN* +* Allow files in plugins to be reloaded like the rest of the application. [rick] + + Enables or disables plugin reloading. + + config.reload_plugins = true + + You can get around this setting per plugin. + If #reload_plugins? == false (DEFAULT), add this to your plugin's init.rb to make it reloadable: + + Dependencies.load_once_paths.delete lib_path + + If #reload_plugins? == true, add this to your plugin's init.rb to only load it once: + + Dependencies.load_once_paths << lib_path + * Small tweak to allow plugins to specify gem dependencies. [rick] # OLD open_id_authentication plugin init.rb -- cgit v1.2.3