<?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 2.1: Named Scope</title>
	<atom:link href="http://www.railsrocket.com/articles/rails-21-named-scope/feed" rel="self" type="application/rss+xml" />
	<link>http://www.railsrocket.com/articles/rails-21-named-scope</link>
	<description>A Ruby on Rails community website with tutorials</description>
	<lastBuildDate>Tue, 16 Feb 2010 16:49:58 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kirk Bushell</title>
		<link>http://www.railsrocket.com/articles/rails-21-named-scope/comment-page-1#comment-4310</link>
		<dc:creator>Kirk Bushell</dc:creator>
		<pubDate>Sun, 13 Dec 2009 21:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.railsrocket.com/articles/?p=119#comment-4310</guid>
		<description>ashes - models only get loaded once - when the server starts. As a result, any code that isn&#039;t run at runtime (this includes behaviours, relationships/associations, scopes.etc.) only get evaluated once the server has started.</description>
		<content:encoded><![CDATA[<p>ashes &#8211; models only get loaded once &#8211; when the server starts. As a result, any code that isn&#8217;t run at runtime (this includes behaviours, relationships/associations, scopes.etc.) only get evaluated once the server has started.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashes999</title>
		<link>http://www.railsrocket.com/articles/rails-21-named-scope/comment-page-1#comment-3159</link>
		<dc:creator>ashes999</dc:creator>
		<pubDate>Tue, 04 Aug 2009 03:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.railsrocket.com/articles/?p=119#comment-3159</guid>
		<description>Oh nice, I wasn&#039;t aware of that. Thanks for the correction ... I didn&#039;t know that it&#039;s evaluated at server start-time. Did you confirm this empirically? :)</description>
		<content:encoded><![CDATA[<p>Oh nice, I wasn&#8217;t aware of that. Thanks for the correction &#8230; I didn&#8217;t know that it&#8217;s evaluated at server start-time. Did you confirm this empirically? <img src='http://www.railsrocket.com/articles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xpmatteo</title>
		<link>http://www.railsrocket.com/articles/rails-21-named-scope/comment-page-1#comment-3156</link>
		<dc:creator>xpmatteo</dc:creator>
		<pubDate>Mon, 03 Aug 2009 21:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.railsrocket.com/articles/?p=119#comment-3156</guid>
		<description>I mean, the way you coded the :visible_now scope, the Date.now will be evaluated when the server starts, not when the query is run.  So your query will give increasingly wrong answers as time goes on :-)  The right way to do it is to wrap the condition in a lambda; they are not just for capturing parameters, they&#039;re also for delayed execution.</description>
		<content:encoded><![CDATA[<p>I mean, the way you coded the :visible_now scope, the Date.now will be evaluated when the server starts, not when the query is run.  So your query will give increasingly wrong answers as time goes on <img src='http://www.railsrocket.com/articles/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   The right way to do it is to wrap the condition in a lambda; they are not just for capturing parameters, they&#8217;re also for delayed execution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xpmatteo</title>
		<link>http://www.railsrocket.com/articles/rails-21-named-scope/comment-page-1#comment-3155</link>
		<dc:creator>xpmatteo</dc:creator>
		<pubDate>Mon, 03 Aug 2009 21:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.railsrocket.com/articles/?p=119#comment-3155</guid>
		<description>I don&#039;t think the 

named_scope :visible_now, :conditions =&gt; {:created_on  {:created_on &lt;= Date.today}}}</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think the </p>
<p>named_scope :visible_now, :conditions =&gt; {:created_on  {:created_on &lt;= Date.today}}}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
