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:
parent
9a33b9a737
commit
394cf21ce7
2 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/../../inflector'
|
||||
module ActiveSupport
|
||||
module CoreExtensions
|
||||
module String
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue