lib/dry/schema/messages/namespaced.rb in dry-schema-0.3.0 vs lib/dry/schema/messages/namespaced.rb in dry-schema-0.4.0

- old
+ new

@@ -4,28 +4,27 @@ module Schema module Messages # Namespaced messages backend # # @api public - class Namespaced <Dry::Schema::Messages::Abstract + class Namespaced < Dry::Schema::Messages::Abstract # @api private attr_reader :namespace # @api private attr_reader :messages # @api private - attr_reader :root + attr_reader :config # @api private attr_reader :call_opts # @api private def initialize(namespace, messages) - super() + @config = messages.config @namespace = namespace @messages = messages - @root = messages.root @call_opts = { namespace: namespace }.freeze end # Get a message for the given key and its options #