Rails 3.0 and agnosticisms

By Fábio Rehm

Just a side note…

Have you heard about Rails 3.0:

What about its effort to be ORM agnostic?

http://yehudakatz.com/2009/01/06/another-dispatch-step-1-of-2-complete/

“[...] Lori has been working hard on the ORM adapter for Rails. Effectively, the adapter will work like: ActiveORM.for(@sequel_obj). If the object is compatible with the ActiveORM API (note that the names et al are still very much in flux), it will be passed through. For instance, ActiveORM.for(@ar_obj) will just return the ActiveRecord object. ActiveORM.for(@sequel_obj), however, will return a wrapper around the object that is compatible with Rails expectations. Example: ActiveORM.for(@sequel_obj).new_record?. Note that this paragraph is speculative and represents work that is still very much in flux. [...]“

I believe that the whole thing might help us doing some “DDD on Rails”.

Tags: , ,

Leave a Reply