Peter Solnica
Peter Solnica
I can't reproduce this anymore using master branches.
Quick update: I can reproduce it when it's: ``` attribute :bad_name_id, Types::Integer, alias: :user_id ```
I moved this to rom-sql since it's sql-specific. We need to set `combine_keys` option if there are fk aliases. ie if you do this: ```ruby belongs_to(:user, combine_keys: { user_id: :id...
I'm not entirely sure how to solve this yet, but what I am sure is that this is definitely not something that will require extending the schema DSL. Maybe we...
@bilby91 I don't have. For the time being you can simply do this: ```ruby require 'dry-validation' class UserContract < Dry::Validation::Contract def self.define_params(key = :required) params do public_send(key, :name).value(:string) public_send(key, :email).value(:string)...
@jiggneshhgohel no it's not possible. Once you're within a rule your schema is already established so you can't alter it based on input.
> I suggest an interface that accepts a block, updates the config, then brings it back as it was. that's *literally* what the test interface does, see: ```ruby def reset_config...
oh and btw you can just have this: ```ruby def stub_configurable(configurable) yield(configurable) example.run configurable.config.update(configurable.config.pristine.to_h) end ``` no extra methods required
I'm gonna close this as there was no follow-up for a while now and it doesn't seem to be a priority.
Looks like I broke the gemspec. Sorry about this. I'll push a fix to master today.