<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -27,7 +27,7 @@ class Page &lt; ActiveRecord::Base
 
   validates_presence_of :name, :title
 
-  named_scope :visible, :conditions =&gt; [&quot;(expires_on &gt; ? OR expires_on IS NULL) AND published = ? AND (publish_at &lt;= ? OR publish_at IS NULL )&quot;, Time.now.getgm, true, Time.now.getgm]
+  named_scope :visible, lambda{ { :conditions =&gt; [&quot;(expires_on &gt; ? OR expires_on IS NULL) AND published = ? AND (publish_at &lt;= ? OR publish_at IS NULL )&quot;, Time.now.getgm, true, Time.now.getgm] } }
   named_scope :self_and_siblings, lambda {|page| {:conditions =&gt; [&quot;parent_id = ?&quot;, page.parent_id], :order =&gt; 'page_order'}}
   named_scope :expired,      lambda {|p| { :conditions =&gt; [&quot;expires_on &lt; ?&quot;, Time.now.getgm] } }
   named_scope :expires_soon, lambda {|p| { :conditions =&gt; [&quot;expires_on &lt; ?&quot;, Time.now.getgm + 5.days ] } }</diff>
      <filename>app/models/page.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>69de2958d9ec90deaaa7a76355ff54ae1ce86bc3</id>
    </parent>
  </parents>
  <author>
    <name>Josh Adams</name>
    <email>jadams@quadtopus.(none)</email>
  </author>
  <url>http://github.com/knewter/ansuz/commit/7e488151f7dfce5535f7d99464ffa1456b44b591</url>
  <id>7e488151f7dfce5535f7d99464ffa1456b44b591</id>
  <committed-date>2009-03-11T13:26:14-07:00</committed-date>
  <authored-date>2009-03-11T13:26:14-07:00</authored-date>
  <message>fixed page 404 error</message>
  <tree>ba856b965ce029a3a0e914e8bcfce456dc05a878</tree>
  <committer>
    <name>Josh Adams</name>
    <email>jadams@quadtopus.(none)</email>
  </committer>
</commit>
