forked from m3talsmith/arkenstone
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
(Inspired by #34)
Right now:
class Hat
include Arkenstone::Document
url 'http://example.com/hats'
has_many :feathers
end
class Feather
endWill fetch a hat's feathers by calling http://example.com/hats/:id/feathers. Add an option to the association declarations (has_many, belongs_to, etc) to override the associated model name:
class Hat
include Arkenstone::Document
url 'http://example.com/hats'
has_many :feathers, entity_name: 'turtles'
endWhich'll use build this url instead: http://example.com/hats/:id/turtles.
Metadata
Metadata
Assignees
Labels
No labels