1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

24 commits

Author SHA1 Message Date
Andrew White
9d9b22f47a Revert "Deprecate the eager_load_paths configuration"
Because of the possibility of lib being unintentionally eager loaded
it's been agreed that we'll leave autoload paths and eager load paths
separate for Rails 4.0.

This reverts commit 0757b3388f.

Conflicts:
	railties/CHANGELOG.md
2013-02-19 07:22:37 +00:00
Andrew White
0757b3388f Deprecate the eager_load_paths configuration
Since the default in Rails 4.0 is to run in 'threadsafe' mode we need
to eager load all of the paths in `autoload_paths` so we alias
`eager_load_paths` to it. This may have unintended consequences if
you have added 'lib' to `autoload_paths` such as loading unneeded
code or code intended only for development and/or test environments.
If this applies to your application you should thoroughly check what
is being eager loaded.
2013-01-24 23:54:41 +00:00
Carlos Antonio da Silva
ebef8e944a Revert "Add test to deprecation of Path#children"
This reverts commit 29b1dc273e.

Conflicts:
	railties/test/application/paths_test.rb

Reason: since 7f96e4317e was reverted,
Path#children is no longer deprecated.
2012-12-19 09:37:19 -02:00
Rafael Mendonça França
7f96e4317e Revert "Merge pull request #7587 from elia/fix-too-eager-loading"
This reverts commit 3663057518.

REASON: This caused a regression that add app folder in the eager load
path. See #8146 for more information.

Conflicts:
	railties/CHANGELOG.md
2012-12-18 16:05:30 -03:00
Carlos Antonio da Silva
72e6fb005f Fix deprecation message in test for Path#children 2012-10-29 12:53:32 -02:00
Rafael Mendonça França
29b1dc273e Add test to deprecation of Path#children 2012-10-29 11:14:20 -02:00
Rafael Mendonça França
3663057518 Merge pull request #7587 from elia/fix-too-eager-loading
Should not eager_load app/assets
Conflicts:
	railties/CHANGELOG.md
2012-10-29 11:14:14 -02:00
José Valim
5e7d6bba79 Revert "Allow loading external route files from the router"
This reverts commit 6acebb38bc.

Usage of this feature did not reveal any improvement in existing apps.

Conflicts:

	actionpack/lib/action_dispatch/routing/mapper.rb
	guides/source/routing.textile
	railties/lib/rails/engine.rb
	railties/lib/rails/paths.rb
	railties/test/paths_test.rb
2012-06-29 17:44:10 +02:00
Jose and Yehuda
6acebb38bc Allow loading external route files from the router
This feature enables the ability to load an
external routes file from the router via:
  draw :filename

External routes files go in +config/routes+. This
feature works in both engines and applications.
2012-04-25 16:07:17 -05:00
Rafael Mendonça França
e778e22812 Remove the dependent_restrict_raises configuration if activerecord is
not preset
2012-02-01 17:03:23 -02:00
Aaron Patterson
8f309e3105 convert railties to use AS::TestCase 2012-01-05 17:30:17 -08:00
Santiago Pastorino
dad7fdc573 Rails::Plugin has gone 2012-01-03 10:39:08 -02:00
José Valim
8f0e0b63f5 assets.cache_store now defaults to filesystem. You will want to share tmp/assets_cache between deploys. 2011-07-12 22:30:17 -03:00
Jon Leighton
62570e8626 Solve the RAILS_ENV problem in the railties tests in a more generic way 2011-06-06 13:54:05 +01:00
Guillermo Iguaran
685a9195aa Removing deprecated config.paths.app.controller API 2011-05-24 23:02:48 -05:00
José Valim
d649bf158b Provide a cleaner syntax for paths configuration that does not rely on method_missing. 2010-10-06 17:20:15 +02:00
wycats
45e60283e7 Removing Metal from Rails 3.
If you have existing Metals, you have a few options:
* if your metal behaves like a middleware, add it to the
  middleware stack via config.middleware.use. You can use
  methods on the middleware stack to control exactly where
  it should go
* if it behaves like a Rack endpoint, you can link to it
  in the router. This will result in more optimal routing
  time, and allows you to remove code in your endpoint
  that matches specific URLs in favor of the more powerful
  handling in the router itself.

For the future, you can use ActionController::Metal to get
a very fast controller with the ability to opt-in to specific
controller features without paying the penalty of the full
controller stack.

Since Rails 3 is closer to Rack, the Metal abstraction is
no longer needed.
2010-05-29 20:08:00 +02:00
José Valim
1b816d5024 The rake task :environment now loads config/environment.rb instead of initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks. 2010-04-29 08:39:52 +02:00
José Valim
c140aca361 Remove app/views from the load paths [#4226 state:resolved] 2010-04-05 12:30:59 +02:00
Joshua Peek
87db863fa2 Remove invalid builtin tests since we aren't adding that dir to the
load path anymore
2010-03-20 15:14:59 -05:00
José Valim
028e54c63d Add mailers to paths in case someone wants to access it directly and ensures deep nesting works in controllers. 2010-03-06 19:25:55 +01:00
Carlhuda
ecf84b239f Change generated code to replace faulty comment 2010-03-04 16:12:34 -08:00
Carlhuda
9795bf0e74 Fix Sam Ruby's tests and deprecation warnings 2010-03-04 12:12:04 -08:00
José Valim
1dca7ebc93 Refactor railties test, break huge files in smaller chunks and move initializers to application folder. 2010-01-26 13:57:11 +01:00
Renamed from railties/test/initializer/path_test.rb (Browse further)