diff options
Diffstat (limited to 'railties/lib/initializer.rb')
-rw-r--r-- | railties/lib/initializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index e412091d18..31edd69f46 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -286,7 +286,7 @@ module Rails # Raises <tt>LoadError</tt> if the plugin is not found. def load_plugin(directory) name = File.basename(directory) - return false if loaded_plugins.include?(directory) + return false if loaded_plugins.include?(name) # Catch nonexistent and empty plugins. raise LoadError, "No such plugin: #{directory}" unless plugin_path?(directory) |