lib/dry/schema/messages/i18n.rb in dry-schema-0.2.0 vs lib/dry/schema/messages/i18n.rb in dry-schema-0.3.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'i18n'
require 'dry/schema/messages/abstract'
module Dry
module Schema
@@ -8,10 +10,10 @@
# @api public
class Messages::I18n < Messages::Abstract
attr_reader :t
configure do |config|
- config.root = 'dry_schema.errors'.freeze
+ config.root = 'dry_schema.errors'
config.rule_lookup_paths = config.rule_lookup_paths.map { |path| "dry_schema.#{path}" }
end
# @api private
def self.build(paths = config.paths)