lib/dry/schema/rule_applier.rb in dry-schema-1.4.3 vs lib/dry/schema/rule_applier.rb in dry-schema-1.5.0
- old
+ new
@@ -1,14 +1,15 @@
# frozen_string_literal: true
-require 'dry/initializer'
+require "dry/initializer"
-require 'dry/schema/constants'
-require 'dry/schema/config'
-require 'dry/schema/result'
-require 'dry/schema/messages'
-require 'dry/schema/message_compiler'
+require "dry/schema"
+require "dry/schema/constants"
+require "dry/schema/config"
+require "dry/schema/result"
+require "dry/schema/messages"
+require "dry/schema/message_compiler"
module Dry
module Schema
# Applies rules defined within the DSL
#
@@ -18,10 +19,10 @@
# @api private
param :rules
# @api private
- option :config, default: -> { Config.new }
+ option :config, default: -> { Schema.config.dup }
# @api private
option :message_compiler, default: -> { MessageCompiler.new(Messages.setup(config.messages)) }
# @api private