<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,18 +4,37 @@ This NamedScope behavior for CakePHP allows you to define named scopes for a mod
 and then apply them to any find call. It will automagically create a model method,
 and a method for use with the _findMethods property of the model.
 
+NamedScope is now packaged as a plugin, so as to allow easier management - particularly with Git submodules - and to support tests.
+
 Get it from [http://github.com/joelmoss/cakephp-namedscope](http://github.com/joelmoss/cakephp-namedscope) or [http://developwithstyle.com](http://developwithstyle.com)
 
 Borrowed from an original idea found in Ruby on Rails, and a first attempted for Cake
 by Micha&#322; Szajbe [http://github.com/netguru/namedscopebehavior](http://github.com/netguru/namedscopebehavior)
 
 
+### Install:
+
+Just create a 'named_scope' directory in your app/plugins directory, and drop these files and directories into it.
+
+If your application is managed via Git, you can use NamedScope as a submodule. Just cd into your app directory, and run:
+
+    git submodule add git://github.com/joelmoss/cakephp-namedscope.git plugins/named_scope
+    
+Once the submodule is added we need to register this submodule using `init`:
+
+    git submodule init
+    
+From now on we can update all the submodules using the following command:
+
+    git submodule update
+    
+
 ### Example:
  
 I have a User model and want to return only those which are active. So I define this in my model:
 
     var $actsAs = array(
-        'NamedScope' =&gt; array(
+        'NamedScope.NamedScope' =&gt; array(
             'active' =&gt; array(
                 'conditions' =&gt; array(
                     'User.is_active' =&gt; true</diff>
      <filename>README.md</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50f83c656904ab94af9a9ec84c2c4dafc220c52c</id>
    </parent>
  </parents>
  <author>
    <name>Joel Moss</name>
    <email>joel@developwithstyle.com</email>
  </author>
  <url>http://github.com/joelmoss/cakephp-namedscope/commit/b47e365cd84dfdf036ca7d688772dfa0eddb6a34</url>
  <id>b47e365cd84dfdf036ca7d688772dfa0eddb6a34</id>
  <committed-date>2008-12-11T01:13:36-08:00</committed-date>
  <authored-date>2008-12-11T01:13:36-08:00</authored-date>
  <message>Updated Readme</message>
  <tree>c9ec49ceccb45617246562153dd403038911efee</tree>
  <committer>
    <name>Joel Moss</name>
    <email>joel@developwithstyle.com</email>
  </committer>
</commit>
