mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update plugin tasks dirs deprecation warning
This commit is contained in:
parent
66d537852b
commit
e2795383cf
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
require 'rails/engine'
|
||||
require 'active_support/core_ext/array/conversions'
|
||||
|
||||
module Rails
|
||||
class Plugin < Engine
|
||||
|
@ -28,8 +29,7 @@ module Rails
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue