Skip to content

Commit e02afc1

Browse files
committed
Add require for ClassAttribute in class/attribute core extension
rails/rails@1962e8d introduced the ClassAttribute class. We need to require it in the core_ext/class/attribute or else we will get a const missing error in gems or apps that are only requiring that core extension and not all of active support.
1 parent 30045b7 commit e02afc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activesupport/lib/active_support/core_ext/class/attribute.rb

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

33
require "active_support/core_ext/module/redefine_method"
4+
require "active_support/class_attribute"
45

56
class Class
67
# Declare a class-level attribute whose value is inheritable by subclasses.

0 commit comments

Comments
 (0)