lib/avromatic/model/configurable.rb in avromatic-4.0.0 vs lib/avromatic/model/configurable.rb in avromatic-4.1.0

- old
+ new

@@ -22,11 +22,12 @@ included do class_attribute :config, instance_accessor: false, instance_predicate: false end module ClassMethods - delegate :avro_schema, :value_avro_schema, :key_avro_schema, :mutable?, :immutable?, to: :config + delegate :avro_schema, :value_avro_schema, :key_avro_schema, :mutable?, :immutable?, + :avro_schema_subject, :value_avro_schema_subject, :key_avro_schema_subject, to: :config def value_avro_field_names @value_avro_field_names ||= value_avro_schema.fields.map(&:name).map(&:to_sym).freeze end @@ -66,9 +67,10 @@ end end end delegate :avro_schema, :value_avro_schema, :key_avro_schema, + :avro_schema_subject, :value_avro_schema_subject, :key_avro_schema_subject, :value_avro_field_names, :key_avro_field_names, :value_avro_field_references, :key_avro_field_references, :mutable?, :immutable?, to: :class end