lib/config_mapper/validator.rb in config_mapper-1.7.0 vs lib/config_mapper/validator.rb in config_mapper-1.8.0

- old
+ new

@@ -1,14 +1,17 @@ +# frozen_string_literal: true + module ConfigMapper module Validator def self.resolve(arg) return arg if arg.respond_to?(:call) if arg.respond_to?(:name) # looks like a primitive class -- find the corresponding coercion method return Kernel.method(arg.name) end + arg end end