Changeset 3176
- Timestamp:
- 11/23/05 22:33:45 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/dependencies.rb
r3169 r3176 44 44 if load? 45 45 # Append .rb if we have a bare file name. 46 load_file_name = "#{file_name}.rb" unless file_name[-3..-1] == '.rb'46 load_file_name = (file_name =~ /\.rb$/ ? file_name : "#{file_name}.rb") 47 47 48 48 # Enable warnings iff this file has not been loaded before.