diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-25 16:32:24 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-25 16:32:24 -0800 |
commit | e2795383cfaafe5c1e38f47d520419662433ffca (patch) | |
tree | 760979fa21f361bab25e9c8ffa1cc6f17a9c3e7e /railties/lib | |
parent | 66d537852b6c0357f391069c6d3b0b62c0722283 (diff) | |
download | rails-e2795383cfaafe5c1e38f47d520419662433ffca.tar.gz rails-e2795383cfaafe5c1e38f47d520419662433ffca.tar.bz2 rails-e2795383cfaafe5c1e38f47d520419662433ffca.zip |
Update plugin tasks dirs deprecation warning
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 882f2dc28e..c1a2c5c87b 100644 --- a/railties/lib/rails/plugin.rb +++ b/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 @@ 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 |