lib/avromatic/io/datum_reader.rb in avromatic-0.23.0 vs lib/avromatic/io/datum_reader.rb in avromatic-0.24.0

- old
+ new

@@ -4,10 +4,10 @@ # Subclass DatumReader to include additional information about the union # member index used. The code modified below is based on salsify/avro, # branch 'salsify-master' with the tag 'v1.9.0.3' class DatumReader < Avro::IO::DatumReader - UNION_MEMBER_INDEX = '__avromatic_member_index'.freeze + UNION_MEMBER_INDEX = Avromatic::IO::UNION_MEMBER_INDEX def read_data(writers_schema, readers_schema, decoder, initial_record = {}) # schema matching unless self.class.match_schemas(writers_schema, readers_schema) raise Avro::IO::SchemaMatchException.new(writers_schema, readers_schema)