ActiveORM, making rails ORM agnostic.

Posted by Lori about 1 year ago

ActiveORM is a framework for providing an ORM agnostic API for rails to interact with models. In addition to agnosticism, a goal of ActiveORM is simplifying how rails interacts with ORM's.

inflection =
    case
    when options[:action].to_s == "new"
      args.pop
      :singular
    when ActiveORM.supports? record && ActiveORM.for(record).new_record?
      args.pop
      :plural
    else
      :singular
    end

You will be able to drop in Sequel, Datamapper, or whatever your ORM of choice, and everything should 'just work'. Its coming!

Post a Reply ( 0 replies so far)

Replies

You need to Sign In before you can post.