metautonomo.us

Confounding URL typists since 2007.

Monthly Archives: May 2010

Arel merge!

0 Comments

Using MetaSearch and MetaWhere is about to become simpler, now that most of my Arel changes have been merged into rails/arel. Once a new Arel gem is released, I’ll make a new gem release of both of my libraries, as well. Thanks to Emilio Tagua () and Bryan Helmkamp () for the feedback and eventual merge!

Filed under Blog
May 20, 2010

ActiveRecord::Relation vs Arel

3 Comments

Since the release of ActiveRecord Query Interface 3.0, I think the line has been pretty blurry for the Rails community about where ActiveRecord ends and Arel begins. I’ve seen folks attribute ActiveRecord::PredicateBuilder to Arel, and I’ve seen folks assume that an ActiveRecord::Relation is an Arel object. Neither is the case. Since MetaSearch and MetaWhere both use combinations of ActiveRecord::Relation and Arel under the hood, and I’ve spent some time putting together patches for both Rails core and Arel, the blurry line between them has become more distinct for me. In this post, I hope to clear up some misunderstandings before Rails 3 is released, and the AR 3.0 query interface becomes the norm.
Read the rest of this post

Filed under Blog
May 11, 2010

Why (fork) Arel?

2 Comments

In a few recent posts, you may have noticed me mention my Arel fork on GitHub. I’ve never really devoted a post to discussing that fork, what’s different about it, and why it exists, so here’s some background.

Read the rest of this post

Filed under Blog
May 3, 2010