module ActiveSupport::Dependencies::Loadable

def load_dependency(file)

def load_dependency(file)
  if Dependencies.load? && Dependencies.constant_watch_stack.watching?
    Dependencies.new_constants_in(Object) { yield }
  else
    yield
  end
rescue Exception => exception  # errors from loading file
  exception.blame_file! file if exception.respond_to? :blame_file!
  raise
end