Getting started with Datory
Version support
Ruby/Rails | 8.0 | 7.2 | 7.1 | 7.0 | 6.1 | 6.0 | 5.2 | 5.1 | 5.0 |
---|---|---|---|---|---|---|---|---|---|
3.5 Preview | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
3.4 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
3.3 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
3.2 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
3.1 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
Installation
Add this to Gemfile
:
ruby
gem "datory"
And execute:
shell
bundle install
Preparation
As a first step, it is recommended to prepare the base class for further inheritance.
For DTOs
ruby
module ApplicationDTO
class Base < Datory::Base
end
end
For forms
ruby
module ApplicationForm
class Base < Datory::Base
end
end