Permalink
Browse files

Update plugin tasks dirs deprecation warning

  • Loading branch information...
1 parent 66d5378 commit e2795383cfaafe5c1e38f47d520419662433ffca @jeremy jeremy committed Feb 26, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/plugin.rb
@@ -1,4 +1,5 @@
require 'rails/engine'
+require 'active_support/core_ext/array/conversions'
module Rails
class Plugin < Engine
@@ -28,8 +29,7 @@ def load_tasks
extra_tasks = Dir["#{root}/{tasks,rails/tasks}/**/*.rake"]
unless extra_tasks.empty?
- ActiveSupport::Deprecation.warn "Having rake tasks in PLUGIN_PATH/tasks or " <<
- "PLUGIN_PATH/rails/tasks is deprecated. Use PLUGIN_PATH/lib/tasks instead"
+ ActiveSupport::Deprecation.warn "Rake tasks in #{extra_tasks.to_sentence} are deprecated. Use lib/tasks instead."
extra_tasks.sort.each { |ext| load(ext) }
end
end

0 comments on commit e279538

Please sign in to comment.