Hi all I have in mind to extract some functionality of my Rails app into plugins. So I''m already placing them into vendor/plugins with the same structure that a "real" plugin has. Now I have the problem that the plugins are only loaded when starting the server. So while I''m fine-tuning them I''d like to reload my specific pseudo-plugins on every request when in development mode. How can I achieve that? Thanks Josh -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Joshua Muheim
2007-Nov-13 23:01 UTC
Re: Reload specific plugins on every request in dev mode?
I found the following page... http://weblog.techno-weenie.net/2007/1/26/understanding-the-rails-plugin-initialization-process ...which tells me that adding... Dependencies.load_once_paths.delete(lib_path) ...at the top of init.rb of my plugin should do the trick, but it seems it doesn''t for me... :-( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---