Changeset 1057
- Timestamp:
- 04/02/05 08:24:39 (3 years ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/dependencies.rb (modified) (1 diff)
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 1 6 *1.0.3* (27th March, 2005) 2 7 trunk/activesupport/lib/active_support/dependencies.rb
r984 r1057 176 176 177 177 begin 178 require_ or_load(class_id.to_s.demodulize.underscore)178 require_dependency(class_id.to_s.demodulize.underscore) 179 179 if Object.const_defined?(class_id) then return Object.const_get(class_id) else raise LoadError end 180 180 rescue LoadError => e