File tree Expand file tree Collapse file tree 3 files changed +25
-28
lines changed Expand file tree Collapse file tree 3 files changed +25
-28
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` ActiveRecord::Base.clear_active_connections! ` .
2
+
3
+ * Rafael Mendonça França*
4
+
5
+ * Remove deprecated ` ActiveRecord::Base.clear_reloadable_connections! ` .
6
+
7
+ * Rafael Mendonça França*
8
+
9
+ * Remove deprecated ` ActiveRecord::Base.clear_all_connections! ` .
10
+
11
+ * Rafael Mendonça França*
12
+
13
+ * Remove deprecated ` ActiveRecord::Base.flush_idle_connections! ` .
14
+
15
+ * Rafael Mendonça França*
16
+
1
17
* Remove deprecated ` name ` argument from ` ActiveRecord::Base.remove_connection ` .
2
18
3
19
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -320,35 +320,7 @@ def clear_cache! # :nodoc:
320
320
connection_pool . schema_cache . clear!
321
321
end
322
322
323
- def clear_active_connections! ( role = nil )
324
- deprecation_for_delegation ( __method__ )
325
- connection_handler . clear_active_connections! ( role )
326
- end
327
-
328
- def clear_reloadable_connections! ( role = nil )
329
- deprecation_for_delegation ( __method__ )
330
- connection_handler . clear_reloadable_connections! ( role )
331
- end
332
-
333
- def clear_all_connections! ( role = nil )
334
- deprecation_for_delegation ( __method__ )
335
- connection_handler . clear_all_connections! ( role )
336
- end
337
-
338
- def flush_idle_connections! ( role = nil )
339
- deprecation_for_delegation ( __method__ )
340
- connection_handler . flush_idle_connections! ( role )
341
- end
342
-
343
323
private
344
- def deprecation_for_delegation ( method )
345
- ActiveRecord . deprecator . warn ( <<-MSG . squish )
346
- Calling `ActiveRecord::Base.#{ method } is deprecated. Please
347
- call the method directly on the connection handler; for
348
- example: `ActiveRecord::Base.connection_handler.#{ method } `.
349
- MSG
350
- end
351
-
352
324
def resolve_config_for_connection ( config_or_env )
353
325
raise "Anonymous class is not allowed." unless name
354
326
Original file line number Diff line number Diff line change @@ -111,6 +111,15 @@ Please refer to the [Changelog][active-record] for detailed changes.
111
111
112
112
* Remove deprecated ` name ` argument from ` ActiveRecord::Base.remove_connection ` .
113
113
114
+ * Remove deprecated ` ActiveRecord::Base.clear_active_connections! ` .
115
+
116
+ * Remove deprecated ` ActiveRecord::Base.clear_reloadable_connections! ` .
117
+
118
+ * Remove deprecated ` ActiveRecord::Base.clear_all_connections! ` .
119
+
120
+ * Remove deprecated ` ActiveRecord::Base.flush_idle_connections! ` .
121
+
122
+
114
123
### Deprecations
115
124
116
125
### Notable changes
You can’t perform that action at this time.
0 commit comments