lhs icon indicating copy to clipboard operation
lhs copied to clipboard

default_params for LHS::Record

Open 10xSebastian opened this issue 7 years ago • 1 comments

Usefull in inheritance scenario. e.g.:

class Base < LHS::Record
  endpoint 'records/:id'
  endpoint 'records/:type'
end

class Example < Base
  default_params type: 'examples'
end
# get records/examples

10xSebastian avatar Sep 12 '16 08:09 10xSebastian

Sounds like default scope @fpellanda, thats still on the list ;)

10xSebastian avatar Sep 12 '16 08:09 10xSebastian