Browse files

Talk about whats missing

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 29436ed commit 177934e1d0067299ad9b16b212eb1808a299ae53 @dhh dhh committed Sep 3, 2005
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/lib/initializer.rb
View
4 railties/lib/initializer.rb
@@ -77,10 +77,12 @@ def initialize_logger
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 @@ def default_load_paths
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

0 comments on commit 177934e

Please sign in to comment.