apotonick / disposable

Decorators on top of your ORM layer.
MIT License
171 stars 39 forks source link

No self.model_name for twin #27

Closed krainboltgreene closed 8 years ago

krainboltgreene commented 9 years ago

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 or ActiveRecord assumptions (table_name is another).

apotonick commented 9 years ago

Yeah I know, this is ActiveRecord bullshit. Where do you need table_name?

krainboltgreene commented 9 years ago

@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?

apotonick commented 9 years ago

Yo're not usin' https://github.com/apotonick/roar ? Your fault! :stuck_out_tongue_winking_eye:

apotonick commented 9 years ago

And, man, of course, send what you got for us, then we talk! :beers:

krainboltgreene commented 9 years ago

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.

apotonick commented 9 years ago

Roar also parses documents using the same document definition.