File tree Expand file tree Collapse file tree 3 files changed +17
-21
lines changed Expand file tree Collapse file tree 3 files changed +17
-21
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` ActiveRecord::LogSubscriber.runtime ` method.
2
+
3
+ * Rafael Mendonça França*
4
+
5
+ * Remove deprecated ` ActiveRecord::LogSubscriber.runtime= ` method.
6
+
7
+ * Rafael Mendonça França*
8
+
9
+ * Remove deprecated ` ActiveRecord::LogSubscriber.reset_runtime ` method.
10
+
11
+ * Rafael Mendonça França*
12
+
1
13
* Remove deprecated support to define ` explain ` in the connection adapter with 2 arguments.
2
14
3
15
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -6,27 +6,6 @@ class LogSubscriber < ActiveSupport::LogSubscriber
6
6
7
7
class_attribute :backtrace_cleaner , default : ActiveSupport ::BacktraceCleaner . new
8
8
9
- def self . runtime = ( value )
10
- ActiveRecord . deprecator . warn ( <<-MSG . squish )
11
- ActiveRecord::LogSubscriber.runtime= is deprecated and will be removed in Rails 7.2.
12
- MSG
13
- ActiveRecord ::RuntimeRegistry . sql_runtime = value
14
- end
15
-
16
- def self . runtime
17
- ActiveRecord . deprecator . warn ( <<-MSG . squish )
18
- ActiveRecord::LogSubscriber.runtime is deprecated and will be removed in Rails 7.2.
19
- MSG
20
- ActiveRecord ::RuntimeRegistry . sql_runtime
21
- end
22
-
23
- def self . reset_runtime
24
- ActiveRecord . deprecator . warn ( <<-MSG . squish )
25
- ActiveRecord::LogSubscriber.reset_runtime is deprecated and will be removed in Rails 7.2.
26
- MSG
27
- ActiveRecord ::RuntimeRegistry . reset
28
- end
29
-
30
9
def strict_loading_violation ( event )
31
10
debug do
32
11
owner = event . payload [ :owner ]
Original file line number Diff line number Diff line change @@ -123,6 +123,11 @@ Please refer to the [Changelog][active-record] for detailed changes.
123
123
124
124
* Remove deprecated support to define ` explain ` in the connection adapter with 2 arguments.
125
125
126
+ * Remove deprecated ` ActiveRecord::LogSubscriber.runtime ` method.
127
+
128
+ * Remove deprecated ` ActiveRecord::LogSubscriber.runtime= ` method.
129
+
130
+ * Remove deprecated ` ActiveRecord::LogSubscriber.reset_runtime ` method.
126
131
127
132
### Deprecations
128
133
You can’t perform that action at this time.
0 commit comments