RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in