Using external dependencies that represent objects, how can you use the methods on that object in a validation?
Simple example
Dry::Validation.Schema do
configure do
option :record
end
required(:id, :int).filled(eql?: record.id)
end
# Throws Error: NoMethodError (undefined method `id' for #<UnboundMethod:0x007fce52b82c70>)