Skip to content
Browse files

Make the default rakefile read *.rake files from config/tasks (for ea…

…sy extension of the rakefile by e.g. generators)

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent b9cae60 commit 2a8e33872b3b8f297cad50a2c5eaba3cbaeeaa1b @jamis jamis committed Aug 31, 2005
View
2 railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Make the default rakefile read *.rake files from config/tasks (for easy extension of the rakefile by e.g. generators)
+
* Only load breakpoint in development mode and when BREAKPOINT_SERVER_PORT is defined.
* Allow the --toggle-spin switch on process/reaper to be negated
View
2 railties/Rakefile
@@ -26,7 +26,7 @@ RUBY_FORGE_USER = "webster132"
# end
-BASE_DIRS = %w( app config/environments components db doc log lib public script script/process test vendor )
+BASE_DIRS = %w( app config/environments config/tasks components db doc log lib public script script/process test vendor )
APP_DIRS = %w( apis models controllers helpers views views/layouts )
PUBLIC_DIRS = %w( images javascripts stylesheets )
TEST_DIRS = %w( fixtures unit functional mocks mocks/development mocks/test )
View
3 railties/fresh_rakefile
@@ -219,3 +219,6 @@ task :load_fixtures => :environment do
Fixtures.create_fixtures('test/fixtures', File.basename(fixture_file, '.*'))
end
end
+
+# Load any custom rakefile extensions
+Dir["./config/tasks/**/*.rake"].each { |ext| load ext }
View
1 railties/lib/rails_generator/generators/applications/app/app_generator.rb
@@ -106,6 +106,7 @@ def add_options!(opt)
app/models
app/views/layouts
config/environments
+ config/tasks
components
db
doc

0 comments on commit 2a8e338

Please sign in to comment.
Something went wrong with that request. Please try again.