class AppSchema < Dry::Schema::Params
config.messages.load_paths << '/my/app/config/locales/en.yml'
config.messages.backend = :i18n
define do
# define common rules, if any
end
end
When I try to use this example I get the following error:
NoMethodError: undefined method `messages' for #<Dry::Configurable::Config:0x00007ff27f0d83f0>
from /Users/mateuszurbanski/.gem/ruby/2.7.2/gems/dry-configurable-0.11.6/lib/dry/configurable/config.rb:106:in `method_missing'
Defining base schema class documentation contains an example that is not working:
When I try to use this example I get the following error: