提交 ba35b470 编写于 作者: Z Zachary Scott

nodoc private internal constants from ActiveJob::Arguments

上级 974b6acd
......@@ -24,6 +24,7 @@ class SerializationError < ArgumentError
module Arguments
extend self
# :nodoc:
TYPE_WHITELIST = [ NilClass, Fixnum, Float, String, TrueClass, FalseClass, Bignum ]
# Serializes a set of arguments. Whitelisted types are returned
......@@ -43,8 +44,11 @@ def deserialize(arguments)
end
private
# :nodoc:
GLOBALID_KEY = '_aj_globalid'.freeze
# :nodoc:
SYMBOL_KEYS_KEY = '_aj_symbol_keys'.freeze
# :nodoc:
WITH_INDIFFERENT_ACCESS_KEY = '_aj_hash_with_indifferent_access'.freeze
private_constant :GLOBALID_KEY, :SYMBOL_KEYS_KEY, :WITH_INDIFFERENT_ACCESS_KEY
......@@ -113,6 +117,7 @@ def deserialize_hash(serialized_hash)
result
end
# :nodoc:
RESERVED_KEYS = [
GLOBALID_KEY, GLOBALID_KEY.to_sym,
SYMBOL_KEYS_KEY, SYMBOL_KEYS_KEY.to_sym,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册