<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rails has_many and dynamic conditions</title>
	<atom:link href="http://petersteinberger.com/2009/07/rails-has_many-and-dynamic-conditions/feed/" rel="self" type="application/rss+xml" />
	<link>http://petersteinberger.com/2009/07/rails-has_many-and-dynamic-conditions/</link>
	<description>bits about life, coding and stuff</description>
	<lastBuildDate>Mon, 09 Jan 2012 12:46:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: James West</title>
		<link>http://petersteinberger.com/2009/07/rails-has_many-and-dynamic-conditions/comment-page-1/#comment-1590</link>
		<dc:creator>James West</dc:creator>
		<pubDate>Sun, 03 Jul 2011 18:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://petersteinberger.com/?p=260#comment-1590</guid>
		<description>Rails 3 now suggests use of proc for this
e.g.

has_many :tc_links, :conditions =&gt; proc { &quot;#{TcLink.table_name}.tc_version = #{self.send(:lock_version)}&quot; }
See here for more info</description>
		<content:encoded><![CDATA[<p>Rails 3 now suggests use of proc for this<br />
e.g.</p>
<p>has_many :tc_links, :conditions =&gt; proc { &#8220;#{TcLink.table_name}.tc_version = #{self.send(:lock_version)}&#8221; }<br />
See here for more info</p>
]]></content:encoded>
	</item>
</channel>
</rss>

