diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-19 11:13:38 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-23 14:49:03 -0700 |
commit | f2aea4d3eac467b85a63593ba7e2de28b2a2eb0a (patch) | |
tree | d28badd4538013478a2266c820f27607787296d5 /railties/lib/rails/plugin | |
parent | a3309e4d70101ec1b32064a99042622c43619d09 (diff) | |
download | rails-f2aea4d3eac467b85a63593ba7e2de28b2a2eb0a.tar.gz rails-f2aea4d3eac467b85a63593ba7e2de28b2a2eb0a.tar.bz2 rails-f2aea4d3eac467b85a63593ba7e2de28b2a2eb0a.zip |
Get initializer_test.rb to pass with the new initializer.
Diffstat (limited to 'railties/lib/rails/plugin')
-rw-r--r-- | railties/lib/rails/plugin/loader.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/plugin/loader.rb b/railties/lib/rails/plugin/loader.rb index bc22dfc591..7ea9c7c0f3 100644 --- a/railties/lib/rails/plugin/loader.rb +++ b/railties/lib/rails/plugin/loader.rb @@ -105,7 +105,7 @@ module Rails end def register_plugin_as_loaded(plugin) - initializer.loaded_plugins << plugin + initializer.config.loaded_plugins << plugin end def configuration @@ -174,7 +174,7 @@ module Rails end def loaded?(plugin_name) - initializer.loaded_plugins.detect { |plugin| plugin.name == plugin_name.to_s } + initializer.config.loaded_plugins.detect { |plugin| plugin.name == plugin_name.to_s } end def ensure_all_registered_plugins_are_loaded! |