ROM::Environment#relation

Parsed documentation:
View on GitHub
Global relation setup DSL

@example
  rom = ROM::Environment.new
  rom.setup(:memory)

  rom.relation(:users) do
    def by_name(name)
      restrict(name: name)
    end
  end

@api public
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.