|
|
|
|
|
by chucke
579 days ago
|
|
The rails core team would tell you NOT to use arel, as it's private API. The conceptual compression of having activerecord be a database table mapper, entity class, form/input validation, and query builder, it's both its greatest strength and its greatest weakness, depending of the stage of the business. FWIW the ruby community has more suitable alternatives which self serve the kind of abstractions you describe, such as hanami. |
|
Sometimes you just need SQL not everything that AR gives you. Most apps are read heavy, so you need an escape hatch. For me, Arel was always that: a programmatic way to alter SQL.
Hanami is a complete Rails replacement. I wouldn’t advocate for that at all.