Skip to content

Getting started with Datory

Version support

Ruby/Rails8.07.27.17.06.16.05.25.15.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