Skip to content

Commit

Permalink
Add require for ClassAttribute in class/attribute core extension
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrewn617 authored and DanielaVelasquez committed Oct 3, 2024
1 parent 1a2cf1e commit c83c1ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "active_support/core_ext/module/redefine_method"
require "active_support/class_attribute"

class Class
# Declare a class-level attribute whose value is inheritable by subclasses.
Expand Down

0 comments on commit c83c1ad

Please sign in to comment.