Hey Pedro,
I don''t think there is. There is just accessor for
Rails::Configuration. But
you could easily get it:
RINIT = Rails::Initializer.run do |config|
# ...
end
Now open up script/console:
RINIT.loaded_plugins.map &:name
I think if we save the Configuration instance, we could save Initializer as
well.
On Sat, Jun 7, 2008 at 1:11 AM, Pedro Mariano Belo <pedrobelo@gmail.com>
wrote:
>
> Hey guys,
>
> Isn''t it possible to access Rails::Initializer after it ran?
>
> For instance, I want to see which plugins were loaded but I can''t
do
> Dir["#{RAILS_ROOT}/plugins/*"] because I''m using another
plugin
> loader.
>
> What''s the "official" way the framework is using to get
data from the
> Initializer? Make it call your model?
>
> Thanks,
> Pedro
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---