instance method
available?
Ruby on Rails edge
Since v7.1.6 Private — implementation detail, not part of the public APISignature
available?()
No documentation comment.
Source
# File activesupport/lib/active_support/messages/serializer_with_fallback.rb, line 134
def available?
return @available if defined?(@available)
# Check the dependency before loading the wrapper that warns if it is missing.
gem "msgpack", ">= 1.7.0"
require "msgpack"
require "active_support/message_pack"
@available = true
rescue LoadError
@available = false
end
Defined in activesupport/lib/active_support/messages/serializer_with_fallback.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Messages::SerializerWithFallback::MessagePackWithFallback