Why?
Currently there is no way to redefine commands base_path without
overriding them completely. And it also would nice to have
ability to define base_path on relation level.
This PR
Adds base_path as relation macro that will be used as base path
to read data and for create/update/destroy commands.
Example:
class Contacts < ROM::Relation[:http]
gateway :http
base_path '/my/custom/path'
end
Why? Currently there is no way to redefine commands base_path without overriding them completely. And it also would nice to have ability to define base_path on relation level.
This PR Adds
base_path
as relation macro that will be used as base path to read data and for create/update/destroy commands.Example:
Depends