lib/active_remote/serializers/protobuf.rb in active_remote-1.5.7 vs lib/active_remote/serializers/protobuf.rb in active_remote-1.5.8

- old
+ new

@@ -35,10 +35,10 @@ # Recursively build messages from a hash of attributes. # TODO: Pull this functionality into the protobuf gem. # def build_message(message_class, attributes) attributes.inject(message_class.new) do |message, (key, value)| - if field = message.get_field_by_name(key) + if field = message.get_field_by_name(key) || message.get_ext_field_by_name(key) # Override the value based on the field type where issues # exist in the protobuf gem. # if field.repeated?