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

Ticket #2997 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Fix for dependency checking history

Reported by: joel+devrails@tristesse.org Assigned to: David
Priority: normal Milestone:
Component: ActiveSupport Version: 0.14.3
Severity: major Keywords: stack overflow
Cc:

Description

Some time in and after revision 3169, activesupport/lib/active_support/dependencies.rb appears to have been changed to use a new method of keeping track of which files have been loaded. This doesn't seem to work for me, though - a has_and_belongs_to_many causes a stack overflow as each model attempts to load the other.

This patch resolves the issue, though with my limited Ruby understanding I don't know why the << lines weren't executed where they are.

Attachments

dependencies_stack_overflow_patch.diff (0.8 kB) - added by joel+devrails@tristesse.org on 11/24/05 01:53:46.

Change History

11/24/05 01:53:46 changed by joel+devrails@tristesse.org

  • attachment dependencies_stack_overflow_patch.diff added.

11/24/05 05:43:31 changed by bitsweat

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

(In [3181]) Sever infinite loop for mutual dependencies. Closes #2997.