Skip to content

Commit 7606002

Browse files
committed
Move singleton require.
ActiveSupport::Deprecation used to `include Singleton` which is why the require is here, but it was removed in 9812641 (June 5 2023). Leaving the require seems to have been an oversight. However, module ActiveJob::Serializers::ObjectSerializer does require Singleton and was relying on AS:Deprecation to require it. This PR just moves the require to the place it's actually used.
1 parent 590a675 commit 7606002

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activejob/lib/active_job/serializers/object_serializer.rb

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

3+
require "singleton"
4+
35
module ActiveJob
46
module Serializers
57
# Base class for serializing and deserializing custom objects.

activesupport/lib/active_support/deprecation.rb

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

3-
require "singleton"
4-
53
module ActiveSupport
64
# = Active Support \Deprecation
75
#

0 commit comments

Comments
 (0)