|
|
|
|
|
by adamzapasnik
1260 days ago
|
|
This is what I struggle a lot with in Rails. No good, community backed serialisation gem. AMS is a mess, other ones are not maintained. And I'm not a fan of JSON api spec's serialisation either. But also AR doesn't have any easy tools to construct complex queries/multi queries. It works for basic and medium stuff, but even this very common count problem is a disaster to deal with. Sure. you can use Arel and some other gems, but these aren't good solutions for someone that wants to get things done. Makes me wonder how others deal with these problems tbh. |
|
find_by_sql gives you enough freedom to get everything out of the db into a ActiveModel object.