Skip to content
This repository
Browse code

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
  • Loading branch information...
commit b31aa2dd575e2b0ee3944d47bf2a6520dbc36320 1 parent e508595
David Heinemeier Hansson authored October 28, 2005
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* 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]
  4
+
3 5
 * Fixed scaffold generator when started with only 1 parameter #2609 [self@mattmower.com]
4 6
 
5 7
 * rake should run functional tests even if the unit tests have failures [Jim Weirich]
2  railties/Rakefile
@@ -29,7 +29,7 @@ RUBY_FORGE_USER    = "webster132"
29 29
 
30 30
 
31 31
 BASE_DIRS   = %w( app config/environments components db doc log lib lib/tasks public script script/performance script/process test vendor vendor/plugins )
32  
-APP_DIRS    = %w( apis models controllers helpers views views/layouts )
  32
+APP_DIRS    = %w( apis models controllers helpers services views views/layouts )
33 33
 PUBLIC_DIRS = %w( images javascripts stylesheets )
34 34
 TEST_DIRS   = %w( fixtures unit functional mocks mocks/development mocks/test )
35 35
 
2  railties/environments/environment.rb
@@ -12,7 +12,7 @@
12 12
   # config.frameworks -= [ :action_web_service, :action_mailer ]
13 13
 
14 14
   # Add additional load paths for your own custom dirs
15  
-  # config.load_paths += %W( #{RAILS_ROOT}/app/services )
  15
+  # config.load_paths += %W( #{RAILS_ROOT}/extras )
16 16
 
17 17
   # Force all environments to use the same logger level 
18 18
   # (by default production uses :info, the others :debug)
1  railties/lib/initializer.rb
@@ -395,6 +395,7 @@ def default_load_paths
395 395
           app/models 
396 396
           app/controllers 
397 397
           app/helpers 
  398
+          app/services 
398 399
           app/apis 
399 400
           components 
400 401
           config 
1  railties/lib/rails_generator/generators/applications/app/app_generator.rb
@@ -107,6 +107,7 @@ def add_options!(opt)
107 107
     app/controllers
108 108
     app/helpers
109 109
     app/models
  110
+    app/services
110 111
     app/views/layouts
111 112
     config/environments
112 113
     components

0 notes on commit b31aa2d

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