Subject: CVS commit: pkgsrc/databases/ruby-activerecord3
From: Takahiro Kambe
Date: 2011-03-23 15:48:12
Message id: 20110323144813.0B3E6175DD@cvs.netbsd.org

Log Message:
Update ruby-activerecord3 package to 3.0.5.

*Rails 3.0.5 (unreleased)*

* Model.where(:column => 1).where(:column => 2) will always produce an
  AND query.

  [Aaron Patterson]

* Deprecated support for interpolated association conditions in the
  form of :conditions => 'foo = #{bar}'.

  Instead, you should use a proc, like so:

  Before:

    has_many :things, :conditions => 'foo = #{bar}'

  After:

    has_many :things, :conditions => proc { "foo = #{bar}" }

  Inside the proc, 'self' is the object which is the owner of the
  association, unless you are eager loading the association, in which
  case 'self' is the class which the association is within.

  You can have any "normal" conditions inside the proc, so the
  following will work too:

    has_many :things, :conditions => proc { ["foo = ?", bar] }

  Previously :insert_sql and :delete_sql on has_and_belongs_to_many
  association allowed you to call 'record' to get the record being
  inserted or deleted. This is now passed as an argument to the proc.

  [Jon Leighton]

Files:
RevisionActionfile
1.4modifypkgsrc/databases/ruby-activerecord3/Makefile
1.4modifypkgsrc/databases/ruby-activerecord3/distinfo