1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Minor tweaks

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@428 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-01-16 13:07:28 +00:00
parent 9a33b9a737
commit 394cf21ce7
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,4 @@
require File.dirname(__FILE__) + '/../../inflector'
module ActiveSupport
module CoreExtensions
module String

View file

@ -30,8 +30,10 @@ module Dependencies
clear
old_loaded.each do |file_name|
next if loaded.include?(file_name)
begin
silence_warnings { load("#{file_name}.rb") } unless loaded.include?(file_name)
silence_warnings { load("#{file_name}.rb") }
loaded << file_name
rescue LoadError
# The association didn't reside in its own file, so we assume it was required by other means