diff options
author | Oshoma Momoh <oshoma@mukodu.com> | 2009-02-09 10:29:15 -0500 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-02-13 21:40:30 +1300 |
commit | a6508527570cd3f7225a7030218447bcc5824224 (patch) | |
tree | f892256d5428c1c72cf0ae674ba98e06afd5e875 /railties/lib | |
parent | 0c956443964a20cbcc122e2d8c429b0cbb121828 (diff) | |
download | rails-a6508527570cd3f7225a7030218447bcc5824224.tar.gz rails-a6508527570cd3f7225a7030218447bcc5824224.tar.bz2 rails-a6508527570cd3f7225a7030218447bcc5824224.zip |
Fix loader's LoadError exception message to mention missing plugins and omit loaded plugins.
Prior to this change the LoadError message listed all plugins if any one of them was missing.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1921 state:committed]
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/plugin/loader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin/loader.rb b/railties/lib/rails/plugin/loader.rb index be81bdf4fa..bc0184c43d 100644 --- a/railties/lib/rails/plugin/loader.rb +++ b/railties/lib/rails/plugin/loader.rb @@ -175,7 +175,7 @@ module Rails def ensure_all_registered_plugins_are_loaded! if explicit_plugin_loading_order? if configuration.plugins.detect {|plugin| plugin != :all && !loaded?(plugin) } - missing_plugins = configuration.plugins - (plugins + [:all]) + missing_plugins = configuration.plugins - (plugins.map{|p| p.name.to_sym} + [:all]) raise LoadError, "Could not locate the following plugins: #{missing_plugins.to_sentence}" end end |