You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/gordon/dev/dry-rb/dry-validation/lib/dry/validation/contract.rb:69:in `block in <class:Contract>': undefined method `macros' for #<Object:0x00000001114c9660> (NoMethodError)
The problem is dry-validation uses config as one of its constructor keywords. dry-auto_inject "guesses" it should pass the dependency down (or up?) to the parent class. This way dry-validation gets the wrong config object. I guess we should rename config to __config__, it should be an easy thing to do. This won't break backward compatibility as far as I can see. Assuming we'll add an alias alias_method :config, :__config__.
The text was updated successfully, but these errors were encountered:
Here I'm trying to inject a dependency named
config
using the default kwargs strategy of dry-auto_inject.This results in
The problem is dry-validation uses
config
as one of its constructor keywords. dry-auto_inject "guesses" it should pass the dependency down (or up?) to the parent class. This way dry-validation gets the wrong config object. I guess we should renameconfig
to__config__
, it should be an easy thing to do. This won't break backward compatibility as far as I can see. Assuming we'll add an aliasalias_method :config, :__config__
.The text was updated successfully, but these errors were encountered: