Hello,
Can anybody please help me in making understand the purpose of class ROM::Repository::Root
and how to use it?
In the official documentation on rom-rb website under Repositories I couldn’t find any information related to that class.
And the API documentation at Class: ROM::Repository::Root — Documentation for rom-rb/rom (main) under Examples illustrates following:
class UserRepo < ROM::Repository[:users]
commands :create, update: :by_pk, delete: :by_pk
end
It’s confusing that the Examples section for ROM::Repository::Root
illustrates extending from ROM::Repository
.
Also I posted a related question in my another post at Using ROM 5.3.0 Repository with Hanami 2.0. I would highly appreciate if anybody can share inputs on it as well.
Thanks.