On Wed, May 20, 2009 at 12:32, Michael Schuerig <[email protected]> wrote:

>
> Is there a way to find out which (gem) plugins are loaded without
> repeating work the initializer has already done?


The problem is that the current Initializer instance isn't saved anywhere.

If you change your environment.rb like this:

  Init = Rails::Initializer.run ...

Then you can read from it later:

  Init.loaded_plugins.map &:name

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to