diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-02-19 07:48:06 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-02-19 07:53:13 +0000 |
commit | 212ef5278b673aee304519d886d5db86a87b1437 (patch) | |
tree | 6ee8446874afb04747acf7fceec7f2a2daa6efe7 | |
parent | a8bf12979e5fa15282b39c8cfa315e663f613539 (diff) | |
download | rails-212ef5278b673aee304519d886d5db86a87b1437.tar.gz rails-212ef5278b673aee304519d886d5db86a87b1437.tar.bz2 rails-212ef5278b673aee304519d886d5db86a87b1437.zip |
Remove config.autoload_paths from config/application.rb
Most application developers shouldn't be adding paths to
`config.autoload_paths` as it won't be eagerly loaded so
remove it from the generated config/application.rb file.
If a developer does want to autoload from paths outside of the app
directory then they should add the path to `config.eager_load_paths`
as these paths are also autoloaded as well.
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb index d149413e2e..daf399a538 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -20,9 +20,6 @@ module <%= app_const_base %> # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. - # Custom directories with classes and modules you want to be autoloadable. - # config.autoload_paths += %W(#{config.root}/extras) - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' |