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

Ticket #6596 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

[PATCH] Several calls to 'require_dependency' raise an exeption (with 'require' mechanism)

Reported by: yann.lugrin@liquid-concept.ch Assigned to: David
Priority: normal Milestone: 1.2
Component: ActiveSupport Version: edge
Severity: major Keywords:
Cc:

Description

This patch corrects a problem with 'require_dependency' and the 'require' mechanism. For several calls to this method, only first one raise an exeption, the following returns simply 'nil'. This problem does not exists with the 'load' mechanism, so the solution is to generalize it.

Attachments

missing_dependency_raises_missing_source_file_for_several_require.diff (3.1 kB) - added by yann.lugrin@liquid-concept.ch on 11/10/06 10:46:43.
Add test and change to require_or_load method

Change History

11/10/06 10:46:43 changed by yann.lugrin@liquid-concept.ch

  • attachment missing_dependency_raises_missing_source_file_for_several_require.diff added.

Add test and change to require_or_load method

02/18/07 20:42:16 changed by josh

  • status changed from new to closed.
  • resolution set to fixed.

Unit tests seem to pass now. Closing ticket as fixed.