diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-03 16:04:33 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-03 16:04:33 +0000 |
commit | 177934e1d0067299ad9b16b212eb1808a299ae53 (patch) | |
tree | 9c8d46076e353ec9af4332e28052f8bdf73aedb9 /railties/lib | |
parent | 29436edb733ae3033d8a27ce755975745b1307f5 (diff) | |
download | rails-177934e1d0067299ad9b16b212eb1808a299ae53.tar.gz rails-177934e1d0067299ad9b16b212eb1808a299ae53.tar.bz2 rails-177934e1d0067299ad9b16b212eb1808a299ae53.zip |
Talk about whats missing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index d8264f520f..98f24f3343 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -77,10 +77,12 @@ module Rails end def initialize_framework_logging + # TODO: Only do logging for frameworks loaded [ActiveRecord, ActionController, ActionMailer].each { |mod| mod::Base.logger ||= RAILS_DEFAULT_LOGGER } end def initialize_framework_views + # TODO: Only do view setting for frameworks loaded [ActionController, ActionMailer].each { |mod| mod::Base.template_root ||= configuration.view_path } end @@ -132,10 +134,12 @@ module Rails paths = ["#{environment}/test/mocks/#{environment}"] # Then model subdirectories. + # TODO: Don't include .rb models as load paths paths.concat(Dir["#{RAILS_ROOT}/app/models/[_a-z]*"]) paths.concat(Dir["#{RAILS_ROOT}/components/[_a-z]*"]) # Followed by the standard includes. + # TODO: Don't include dirs for frameworks that are not used paths.concat %w( app app/models |