diff options
author | wycats <wycats@gmail.com> | 2010-03-23 16:34:02 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-23 16:35:14 -0700 |
commit | 45e8cf59dfd6a66f996db1dc02c122bbc66b97aa (patch) | |
tree | bff931fe391bf1bbbc1280376959bf211efcd245 /railties/lib/rails/engine | |
parent | b92963f9f8c8468134d4f726442bb5aae03ecfc6 (diff) | |
download | rails-45e8cf59dfd6a66f996db1dc02c122bbc66b97aa.tar.gz rails-45e8cf59dfd6a66f996db1dc02c122bbc66b97aa.tar.bz2 rails-45e8cf59dfd6a66f996db1dc02c122bbc66b97aa.zip |
init.rb in plugins is here to stay
Diffstat (limited to 'railties/lib/rails/engine')
-rw-r--r-- | railties/lib/rails/engine/configuration.rb | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/railties/lib/rails/engine/configuration.rb b/railties/lib/rails/engine/configuration.rb index 1996b2fb90..b8f1f1009c 100644 --- a/railties/lib/rails/engine/configuration.rb +++ b/railties/lib/rails/engine/configuration.rb @@ -14,25 +14,23 @@ module Rails def paths @paths ||= begin paths = Rails::Paths::Root.new(@root) - paths.app "app", :eager_load => true, :glob => "*" - paths.app.controllers "app/controllers", :eager_load => true - paths.app.helpers "app/helpers", :eager_load => true - paths.app.models "app/models", :eager_load => true - paths.app.mailers "app/mailers", :eager_load => true - paths.app.metals "app/metal", :eager_load => true - paths.app.views "app/views", :eager_load => true - paths.lib "lib", :load_path => true - paths.lib.rails "lib/rails", :glob => "**/*.rake" - paths.lib.rails.initializers "lib/rails/initializers", :glob => "**/*.rb" - paths.lib.tasks "lib/tasks", :glob => "**/*.rake" - paths.lib.templates "lib/templates" - paths.config "config" - paths.config.initializers "config/initializers", :glob => "**/*.rb" - paths.config.locales "config/locales", :glob => "*.{rb,yml}" - paths.config.routes "config/routes.rb" - paths.public "public" - paths.public.javascripts "public/javascripts" - paths.public.stylesheets "public/stylesheets" + paths.app "app", :eager_load => true, :glob => "*" + paths.app.controllers "app/controllers", :eager_load => true + paths.app.helpers "app/helpers", :eager_load => true + paths.app.models "app/models", :eager_load => true + paths.app.mailers "app/mailers", :eager_load => true + paths.app.metals "app/metal", :eager_load => true + paths.app.views "app/views", :eager_load => true + paths.lib "lib", :load_path => true + paths.lib.tasks "lib/tasks", :glob => "**/*.rake" + paths.lib.templates "lib/templates" + paths.config "config" + paths.config.initializers "config/initializers", :glob => "**/*.rb" + paths.config.locales "config/locales", :glob => "*.{rb,yml}" + paths.config.routes "config/routes.rb" + paths.public "public" + paths.public.javascripts "public/javascripts" + paths.public.stylesheets "public/stylesheets" paths end end |