开发者

Asking Rails What Plugins it has Loaded, After Initialization

开发者 https://www.devze.com 2022-12-14 15:00 出处:网络
At some point, this was valid: Rails.plugins But I cannot seem to make this work for me开发者_StackOverflow中文版 in Rails 2.3. What is the proper strategy to ask Rails about plugins that have been

At some point, this was valid:

Rails.plugins

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号