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

Changeset 1057

Show
Ignore:
Timestamp:
04/02/05 08:24:39 (3 years ago)
Author:
david
Message:

Fixed problem with classes being required twice. Object#const_missing now uses require_dependency to load files. It used to use require_or_load which would cause models to be loaded twice, which was not good for validations and other class methods #971 [Nicholas Seckar]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/CHANGELOG

    r1023 r1057  
     1*SVN* 
     2 
     3* Fixed problem with classes being required twice. Object#const_missing now uses require_dependency to load files. It used to use require_or_load which would cause models to be loaded twice, which was not good for validations and other class methods #971 [Nicholas Seckar] 
     4 
     5 
    16*1.0.3* (27th March, 2005) 
    27 
  • trunk/activesupport/lib/active_support/dependencies.rb

    r984 r1057  
    176176 
    177177      begin 
    178         require_or_load(class_id.to_s.demodulize.underscore) 
     178        require_dependency(class_id.to_s.demodulize.underscore) 
    179179        if Object.const_defined?(class_id) then return Object.const_get(class_id) else raise LoadError end 
    180180      rescue LoadError => e