Search code examples
ruby-on-railsruby-on-rails-plugins

Asking Rails What Plugins it has Loaded, After Initialization


At some point, this was valid:

Rails.plugins

But I cannot seem to make this work for me in Rails 2.3. What is the proper strategy to ask Rails about plugins that have been loaded, after its initialized them all?


Solution

  • I am not sure what happened to Rails.plugins, but...


    There's a class that deals with plugin information.

    There's also script/plugin list


    If you're really curious about plugins and their information, take a look at

    $ $RUBYGEMS_DIR/rails-2.3.x/lib/commands/plugin.rb