We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c94760c + bbedd4f commit 490804fCopy full SHA for 490804f
activesupport/lib/active_support/cache/serializer_with_fallback.rb
@@ -1,5 +1,7 @@
1
# frozen_string_literal: true
2
3
+require "active_support/core_ext/kernel/reporting"
4
+
5
module ActiveSupport
6
module Cache
7
module SerializerWithFallback # :nodoc:
@@ -207,7 +209,7 @@ def dumped?(dumped)
207
209
private
208
210
def available?
211
return @available if defined?(@available)
- require "active_support/message_pack"
212
+ silence_warnings { require "active_support/message_pack" }
213
@available = true
214
rescue LoadError
215
@available = false
0 commit comments