Displaying 1 result from an estimated 1 matches for "required_dependency".
Did you mean:
require_dependency
2005 Aug 03
0
Apache::RailsDispatcher for mod_ruby
...ocess. It works like this:
* require loads libraries into the top level, and they are shared
with all applications.
* require_dependency loads libraries into an anonymous module for
each application.
* In the development environment, the anonymous module is orphaned
on each request. So required_dependency loads libraries every time.
* In the production environment, the same anonymous module is used
for the same application. So required_dependency loads libraries only at
once.
* Rails configurations such as ActiveRecord::Base.colorize_logging
are reset on each request.
This hack is just a wo...