diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2005-11-17 04:58:48 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2005-11-17 04:58:48 +0000 |
commit | 60e425af33ed1e3319f22d7e904cd9fced55c9f4 (patch) | |
tree | cf349702ae270028dfc87206ebeb564370f8d3b2 /railties/lib | |
parent | e54147145f5e90edcbfa393a510a0e92cc3e9231 (diff) | |
download | rails-60e425af33ed1e3319f22d7e904cd9fced55c9f4.tar.gz rails-60e425af33ed1e3319f22d7e904cd9fced55c9f4.tar.bz2 rails-60e425af33ed1e3319f22d7e904cd9fced55c9f4.zip |
replaced constant Plugin in documentation rake task with plugin local variable. This caused typo's migrations to fail because of name space collisions [Eridius]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/documentation.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/tasks/documentation.rake b/railties/lib/tasks/documentation.rake index a497b674f2..e0ed801b21 100644 --- a/railties/lib/tasks/documentation.rake +++ b/railties/lib/tasks/documentation.rake @@ -7,9 +7,9 @@ Rake::RDocTask.new("appdoc") { |rdoc| rdoc.rdoc_files.include('app/**/*.rb') } -Plugins = FileList['vendor/plugins/**'].map {|plugin| File.basename(plugin)} +plugins = FileList['vendor/plugins/**'].map {|plugin| File.basename(plugin)} # Define doc tasks for each plugin -Plugins.each do |plugin| +plugins.each do |plugin| task :"#{plugin}_plugindoc" => :environment do plugin_base = "vendor/plugins/#{plugin}" options = [] @@ -33,7 +33,7 @@ Plugins.each do |plugin| end desc "Generate documation for all installed plugins" -task :plugindoc => Plugins.map {|plugin| :"#{plugin}_plugindoc"} +task :plugindoc => plugins.map {|plugin| :"#{plugin}_plugindoc"} desc "Remove plugin documentation" task :clobber_plugindoc do |