dry-rails
dry-rails copied to clipboard
The official dry-rb railtie
We have more than 20 rails app using rails 6 & below and ruby 2.7 & below, there are implemented service pattern using dry injection, it is broken on rails...
Previously we had examples using dry-matchers' syntax and it confused some users (including me) who expected examples to "just work" after adding the gem. Updates the example in the controller...
Hi 👋 Note: This PR builds on top on previous PR where I added support for latest dry-system, but I can't do stacked PRs here 😢 Going through the commits...
**Feature request:** Rails sends form parameters for `date_select` as... {:"date(1i)"=>2021, :"date(2i)"=>5, :"date(3i)"=>20} I want to validate this against my schema. required(:date).filled(:date) Currently I need to do some pre-transforming of the...
**Describe the bug** When a dependency is imported via key-based argument, stubbing doesn't affect it's resolving. I've made a sample app that reproduces the issue: https://github.com/mgpnd/import_example Here's the most important...
Components get booted immediately, before test setup is allowed to run. This means that items registered in the container from these boot files cannot be stubbed, before they are injected...
**Describe the bug** Forgive me, I am new to the `dry-*` community, and have been working in the background on converting our current service objects to the dry ecosystem. A...
**Describe the bug** I have a namespace which looks like (example) `CloudNATS`. This is a namespace of Rails application declared in `config/application.rb` as well. When I tried to import a...
## Describe the bug Hey, I ran into an issue when with a clean setup I don't have defined ApplicationContract. This is my first time using `dry-rails`, maybe I'm doing...
I am having two classes A and B with the following definitions ```ruby class A < ApplicationController schema(:index) do optional(:user_id).value(:string) end def index # something end end ``` ```ruby class...