pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/ruby-activerecord3



Module Name:    pkgsrc
Committed By:   taca
Date:           Wed Mar 23 14:48:12 UTC 2011

Modified Files:
        pkgsrc/databases/ruby-activerecord3: Makefile distinfo

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]


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/databases/ruby-activerecord3/Makefile \
    pkgsrc/databases/ruby-activerecord3/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index