Really simple gem that will help you work with the dry-types
gem in development.
This gem currently "works for me", but as of right now I'm sure there are a number of edge cases that haven't been hit yet. As those occur, please report them so I can add specs to test them.
Rails reloads code quite often in development, this broke the usage of Dry::Types
since it would register the same types multiple times and raise exceptions.
Add this line to your application's Gemfile:
gem 'dry-types-rails', group: :development
Note that it should only be included in your development environment.
Nothing to do, this is using Rails::Railtie
, which means it gets loaded automatically.
Bug reports and pull requests are welcome on GitHub at https://github.com/jeromegn/dry-types-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
- @AMHOL
- @jeromegn
- @pnomolos