diff options
-rw-r--r-- | railties/lib/rails/application.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 4c1f36f537..2d0892282e 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -73,7 +73,10 @@ module Rails def load_tasks require "rails/tasks" # Load all extension rake tasks - plugins.each(&:load_tasks) + # TODO: Make all plugin objects respond to :load_tasks + plugins.each do |plugin| + plugin.load_tasks if plugin.respond_to? :load_tasks + end # Load all plugin tasks Dir["#{root}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext } # Load all application tasks |