Changeset 2218
- Timestamp:
- 09/12/05 14:41:51 (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
r2214 r2218 1 1 *SVN* 2 3 * Fixed dependencies related infinite recursion bug when a controller file does not contain a controller class. Closes #1760. [rcolli2@tampabay.rr.com] 2 4 3 5 * Fixed inflections for status, quiz, move #2056 [deirdre@deirdre.net] trunk/activesupport/lib/active_support/dependencies.rb
r1761 r2218 94 94 break 95 95 when File.file?(fs_path) 96 self.root.load_file!(fs_path)96 loaded_file = self.root.load_file!(fs_path) 97 97 98 98 # Import the loaded constant from Object provided we are the root node. 99 99 self.const_set(name, Object.const_get(name)) if self.root? && Object.const_defined?(name) 100 101 # Throw an error if we load the file but we don't find the Object we expect 102 if loaded_file and not self.const_defined?(name) 103 msg = "Already loaded file '#{fs_path}' but '#{name.to_s}' was not set, perhaps you need to rename '#{fs_path}'?" 104 raise LoadError, msg 105 end 100 106 break 101 107 end