Closed krainboltgreene closed 8 years ago
Yeah I know, this is ActiveRecord bullshit. Where do you need table_name
?
@apotonick It's due to some serializer situations. We managed to flub it for now. How about tonight I'll drop my hacks into these issues so you can evaluate them?
Yo're not usin' https://github.com/apotonick/roar ? Your fault! :stuck_out_tongue_winking_eye:
And, man, of course, send what you got for us, then we talk! :beers:
Haha, I actually have never heard of roar. We're using AMS. I will definitely try it out in a side project tho. I honestly prefer to write poro objecst for that layer, I'm not a big fan of the Serializer-That-Is-Really-Presenter-Normalizer-Serializer pattern.
Roar also parses documents using the same document definition.
Something expects
self.model_name
, which is kinda annoying to handle.It'd be really awesome if I could, as a feature, dump in
ActiveModel
orActiveRecord
assumptions (table_name
is another).