The Power of Arel
If you’re using Ruby on Rails, chances are you are already familiar with ActiveRecord. If not, ActiveRecord is an Object Relational Mapping (ORM). Under the hood, ActiveRecord uses a relational algebra library called Arel to compose queries for execution. Arel is a very powerful library readily available for when ActiveRecord falls short..
Comments
But isn’t Arel also private API aka subject to change in minor patches?
@Bernardo … Yes it is. Arel’s major version is known to change with Rails’ minor version.
Rails maintainers suggest not relying on Arel as its private API - if you’re happy with the risk of being tied to a specific version of rails then go for it.
Nice post though as its knowledge.
Post a comment