Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8739 (new enhancement)

Opened 2 years ago

[PATCH] initialize.rb framework_paths exclude frameworks

Reported by: sbeckeriv Assigned to: core
Priority: normal Milestone: 2.x
Component: Railties Version: edge
Severity: normal Keywords: initialize.rb framework_paths
Cc:

Description

In the initialize.rb file framework_paths does not exclude dirs for frameworks that are not used. This patch uses the default_frameworks to include the framework dirs. It appeared that railties, actionpack and activesupport were not optional frameworks so they are included by default. This code also assumes that the framework will use a lib directory (activerecord/lib).

I have modified the ConfigurationMock for the test. Under the mocks directory in the test (/trunk/railties/test/mocks) 4 folders have to be created actionmailer,activerecord,activeresource and railites. Each of those 4 folders need to have another folder inside them called lib.

Attachments

initializer_framework_paths_exclude.diff (1.8 kB) - added by sbeckeriv on 06/25/07 03:52:48.
diff file for excluding frame work paths in initializer.rb

Change History

06/25/07 03:52:48 changed by sbeckeriv

  • attachment initializer_framework_paths_exclude.diff added.

diff file for excluding frame work paths in initializer.rb