rom-rb / rom-http

Abstract HTTP adapter for ROM
https://rom-rb.org
MIT License
73 stars 18 forks source link

WIP: Add base_path param for relation #27

Closed maximderbin closed 7 years ago

maximderbin commented 7 years ago

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

Depends