instance method
parse_properties
Ruby on Rails 8.1.2
Since v7.2.3 PrivateSignature
parse_properties(headers, level)
No documentation comment.
Parameters
-
headersreq -
levelreq
Source
# File activerecord/lib/active_record/encryption/message_pack_message_serializer.rb, line 67
def parse_properties(headers, level)
Properties.new.tap do |properties|
headers&.each do |key, value|
properties[key] = value.is_a?(Hash) ? hash_to_message(value, level + 1) : value
end
end
end
Defined in activerecord/lib/active_record/encryption/message_pack_message_serializer.rb line 67
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::MessagePackMessageSerializer