Skip to content

Commit 1db66c0

Browse files
committed
./tools/railspect requires . -a + manual fixes
Manually add require to lib/rails.rb because it's a framework entrypoint, lib/rails/command.rb because its the entrypoint for the CLI. Additionally migrated Rails::TestUnitReporter off of `class_attribute` since the class is internal and doesn't need the additional features (It gets required very early when running Rails' test suite).
1 parent 78dbb9f commit 1db66c0

File tree

23 files changed

+7
-31
lines changed

23 files changed

+7
-31
lines changed

actiontext/lib/action_text/rendering.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# :markup: markdown
44

5-
require "active_support/concern"
65
require "active_support/core_ext/module/attribute_accessors_per_thread"
76

87
module ActionText

activemodel/lib/active_model/error.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/core_ext/class/attribute"
43

54
module ActiveModel
65
# = Active \Model \Error

activemodel/lib/active_model/naming.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "active_support/core_ext/hash/except"
44
require "active_support/core_ext/module/introspection"
55
require "active_support/core_ext/module/redefine_method"
6-
require "active_support/core_ext/module/delegation"
76

87
module ActiveModel
98
class Name

activerecord/lib/active_record/core.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require "active_support/core_ext/enumerable"
4-
require "active_support/core_ext/module/delegation"
54
require "active_support/parameter_filter"
65
require "concurrent/map"
76

activerecord/lib/active_record/errors.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/deprecation"
43

54
module ActiveRecord
65
include ActiveSupport::Deprecation::DeprecatedConstantAccessor

activerecord/lib/active_record/explain_registry.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/core_ext/module/delegation"
43

54
module ActiveRecord
65
# This is a thread locals registry for EXPLAIN. For example

activerecord/lib/active_record/relation/delegation.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/core_ext/module/delegation"
43

54
module ActiveRecord
65
module Delegation # :nodoc:

activerecord/lib/active_record/scoping.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/core_ext/module/delegation"
43

54
module ActiveRecord
65
module Scoping

activestorage/lib/active_storage/attached.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/core_ext/module/delegation"
43

54
module ActiveStorage
65
# = Active Storage \Attached

activestorage/lib/active_storage/service/mirror_service.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/core_ext/module/delegation"
43

54
module ActiveStorage
65
# = Active Storage Mirror \Service

0 commit comments

Comments
 (0)