aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 13:00:33 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 13:00:33 +0000
commitb31aa2dd575e2b0ee3944d47bf2a6520dbc36320 (patch)
treeff4d4afec8190a82151eecf19c57e84cd66095db
parente508595cf70d6ebd057d8bfa6f2cd25a119cda3f (diff)
downloadrails-b31aa2dd575e2b0ee3944d47bf2a6520dbc36320.tar.gz
rails-b31aa2dd575e2b0ee3944d47bf2a6520dbc36320.tar.bz2
rails-b31aa2dd575e2b0ee3944d47bf2a6520dbc36320.zip
Added app/services as a default dir in the Rails skeleton and to the load path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/Rakefile2
-rw-r--r--railties/environments/environment.rb2
-rw-r--r--railties/lib/initializer.rb1
-rw-r--r--railties/lib/rails_generator/generators/applications/app/app_generator.rb1
5 files changed, 6 insertions, 2 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index cc536c3424..b56a78f254 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Added app/services as a default dir in the Rails skeleton and to the load path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH]
+
* Fixed scaffold generator when started with only 1 parameter #2609 [self@mattmower.com]
* rake should run functional tests even if the unit tests have failures [Jim Weirich]
diff --git a/railties/Rakefile b/railties/Rakefile
index 53b965578f..db66c153b0 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -29,7 +29,7 @@ RUBY_FORGE_USER = "webster132"
BASE_DIRS = %w( app config/environments components db doc log lib lib/tasks public script script/performance script/process test vendor vendor/plugins )
-APP_DIRS = %w( apis models controllers helpers views views/layouts )
+APP_DIRS = %w( apis models controllers helpers services views views/layouts )
PUBLIC_DIRS = %w( images javascripts stylesheets )
TEST_DIRS = %w( fixtures unit functional mocks mocks/development mocks/test )
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index 576667d72e..ee6edb1dbb 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -12,7 +12,7 @@ Rails::Initializer.run do |config|
# config.frameworks -= [ :action_web_service, :action_mailer ]
# Add additional load paths for your own custom dirs
- # config.load_paths += %W( #{RAILS_ROOT}/app/services )
+ # config.load_paths += %W( #{RAILS_ROOT}/extras )
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index 350930bb15..70c0eed866 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -395,6 +395,7 @@ module Rails
app/models
app/controllers
app/helpers
+ app/services
app/apis
components
config
diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb
index 2e26101c6a..220262bf09 100644
--- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb
+++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb
@@ -107,6 +107,7 @@ class AppGenerator < Rails::Generator::Base
app/controllers
app/helpers
app/models
+ app/services
app/views/layouts
config/environments
components