Permalink
Browse files

Opt in to Dependencies

  • Loading branch information...
1 parent ab32126 commit f5d720fb96f2e085acc4ed17f63272c4d38e567e @jeremy jeremy committed Apr 22, 2009
@@ -1,3 +1,4 @@
+require 'set'
require "action_view/template/path"
module ActionView #:nodoc:
@@ -1,5 +1,6 @@
require 'yaml'
require 'set'
+require 'active_support/dependencies'
module ActiveRecord #:nodoc:
# Generic Active Record exception class.
@@ -51,7 +51,6 @@ def self.load_all!
end
require 'active_support/vendor'
-require 'active_support/dependencies'
require 'active_support/json'
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/blank'
+
class Class
def superclass_delegating_reader(*names)
class_name_to_stop_searching_on = superclass.name.blank? ? "Object" : superclass.name
@@ -1,4 +1,5 @@
require 'set'
+require 'thread'
require 'active_support/inflector'
require 'active_support/core_ext/name_error'
require 'active_support/core_ext/object/blank'
@@ -1,3 +1,5 @@
+require 'active_support/core_ext/module/attribute_accessors'
+
module ActiveSupport
# If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format.
mattr_accessor :use_standard_json_time_format
@@ -1,3 +1,5 @@
+require 'active_support/deprecation'
+
module ActiveSupport
module Testing
module Deprecation #:nodoc:
@@ -35,21 +37,19 @@ def collect_deprecations
begin
require 'test/unit/error'
-
+rescue LoadError
+ # Using miniunit, ignore.
+else
module Test
module Unit
- class Error # :nodoc:
+ class Error #:nodoc:
# Silence warnings when reporting test errors.
def message_with_silenced_deprecation
- ActiveSupport::Deprecation.silence do
- message_without_silenced_deprecation
- end
+ ActiveSupport::Deprecation.silence { message_without_silenced_deprecation }
end
-
- alias_method_chain :message, :silenced_deprecation
+ alias_method :message_without_silenced_deprecation, :message
+ alias_method :message, :message_with_silenced_deprecation
end
end
end
-rescue LoadError
- # Using miniunit, ignore.
end
@@ -1,4 +1,5 @@
require 'abstract_unit'
+require 'active_support/core_ext/module/aliasing'
module AttributeAliasing
class Content
@@ -1,5 +1,6 @@
require 'abstract_unit'
require 'pp'
+require 'active_support/dependencies'
module ModuleWithMissing
mattr_accessor :missing_count
@@ -1,4 +1,5 @@
require 'active_support/core_ext/kernel/reporting'
+require 'active_support/dependencies'
module Rails
# The Plugin class should be an object which provides the following methods:

0 comments on commit f5d720f

Please sign in to comment.