ar-extensions 0.8.1 released
on February 10, 2009 @ 01:15 AM

ar-extensions 0.8.1 is released. This is primarily a bug fix release to ensure it works successfully with Rails 2.2.2. Here are the changes:

  • fixed issue in http://zdennis.lighthouseapp.com/projects/14379/tickets/14-join-table-conditions-broken
  • Updated usage of Inflector to point to ActiveSupport::Inflector
  • Fixed bug where finder conditions which use arext-suffixed keys and normal field keys would fail when using a conditions hash. (Gabe da Silveira)
  • added timestamps options to not automatically add timestamps even if record timestamps is disabled in ActiveRecord::Base (Thibaud Guillaume-Gentil)
  • Updated to use alias_method_chain so that multiple aliased finders remain intact (Marcus Crafter)

It may take a little while for the gem to show up in the rubygem mirrors. Thanks to everyone who contributed!


  1. Mike Woodhouse 02.10.09 / 10AM

    From the investigations I started on 0.8.0 on Friday, it looks like there are a couple of issues:

    Firstly, Oracle doesn’t support multiple inserts as implemented. And the “INSERT ALL” syntax that I’ve discovered is useless if there’s a sequence involved. I think (emphasis on “think” at the moment) that sending concatenated (or semi-colon delimited) inserts will work. It’s important to me because I suddenly and unpleasantly find myself in a nasty network latency situation with a couple of million rows to insert each day…

    Secondly, import doesn’t work when supports_import? is true and a primary key is involved: the PK generation doesn’t happen. A solution that seems to work here is to replace the use of connection.values_sql_for_column_names_and_attributes with the same logic applied for the non supports_import? case, which ought to allow some refactoring.

    I promise to overcome my fear of git (I’m only just getting to grips with svn) and attempt to deliver something more constructive than whining…

  2. Steve 02.16.09 / 04AM

    hmm… when I try to import i get: undefined method `title_before_type_cast’

    is this one of the bugs you are referring to?