<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,8 +6,8 @@ class Student &lt; ActiveRecord::Base
   validates_presence_of :date_of_birth
   
   named_scope :scientifics, :conditions =&gt; {:section =&gt; &quot;S&quot;}
-  named_scope :majors     , lambda { { :conditions =&gt; ['date_of_birth &lt; ?', 18.years.ago] } }
-  named_scope :minors     , lambda { { :conditions =&gt; ['date_of_birth &gt; ?', 18.years.ago] } }
+  named_scope :majors     , :conditions =&gt; ['date_of_birth &lt; ?', 18.years.ago]
+  named_scope :minors     , :conditions =&gt; ['date_of_birth &gt; ?', 18.years.ago]
 
   
   def to_param</diff>
      <filename>app/models/student.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>290ea351dbba82dcfd1f88209cb6d5276a13802e</id>
    </parent>
  </parents>
  <author>
    <name>Jonathan Blanchet</name>
    <email>jonathan.blanchet@gmail.com</email>
  </author>
  <url>http://github.com/jblanche/tutoriel_ruby_rails/commit/94e3c6096fdd59f72697d8cd4769320b51ab59ac</url>
  <id>94e3c6096fdd59f72697d8cd4769320b51ab59ac</id>
  <committed-date>2008-08-06T13:09:14-07:00</committed-date>
  <authored-date>2008-08-06T13:09:14-07:00</authored-date>
  <message>better named_scope</message>
  <tree>4ee03d5929d75a8dcd00cdd9a831e38a20d86539</tree>
  <committer>
    <name>Jonathan Blanchet</name>
    <email>jonathan.blanchet@gmail.com</email>
  </committer>
</commit>
