class <%= model_name %>Repository < ROM::Repository::Root
  root <%= ":#{relation}" %>

  commands :create, update: :by_pk, delete: :by_pk, mapper: :<%= mapper %>
end

class <%= model_name %>Repository < ROM::Repository::Root
  root <%= ":#{relation}" %>

  commands :create, update: :by_pk, delete: :by_pk
  struct_namespace <%= Rails.application.class.name.split("::").first %>
end

Use Rails application name to namespace entities
Use Rails application name to namespace entities
