Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update plugin tasks dirs deprecation warning

  • Loading branch information...
commit e2795383cfaafe5c1e38f47d520419662433ffca 1 parent 66d5378
Jeremy Kemper jeremy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/plugin.rb
4 railties/lib/rails/plugin.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.