Permalink
Browse files

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
  • Loading branch information...
1 parent e541471 commit 60e425af33ed1e3319f22d7e904cd9fced55c9f4 Tobias Lütke committed Nov 17, 2005
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 60e425a

Please sign in to comment.