<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,10 +3,15 @@ Easy Access
 
 Easy access control and roles for CRUD operations.
 
-Intended to be used with the restful-authentication, this plugin adds a simple
-role-based access control system for the standard CRUD operations. A default
-access control mechanism is supplied, but it can be overridden on a
-model-by-model basis allowing for very fine-grained control.
+Easy Access provides a mixin for your User model that adds a simple role-based
+access control system for the standard CRUD operations. A default access control
+routine is supplied, but it can be overridden on a model-by-model basis allowing
+for very fine-grained control.
+
+Every CRUD operation has a corresponding User method and model hook. Implement
+the model hooks(e.g. can_be_viewed_by?, can_be_edited_by?, etc.) and/or the
+default AccessSystem::has_privilege_for? to customize your specific access
+controls.
 
 
 Installation
@@ -20,7 +25,7 @@ Installation
 Example
 =======
 
-In a Controller:
+The can_(create|view|update|destroy)? methods can safely be used in any Controller:
 
     class RestrictedModelController &lt; ApplicationController
 
@@ -50,7 +55,8 @@ In a Controller:
         end
 
 
-To implement fine-grained access control for a specific model:
+By default AccessSystem::has_privilege_for? provides coarse-grained access
+controls. To implement fine-grained access control for a specific model:
 
     class RestrictedModel &lt; ActiveRecord::Base
         # ...
@@ -71,12 +77,15 @@ To implement fine-grained access control for a specific model:
         end
 
 
-    class WriteOnlyModel &lt; ActiveRecord::Base
-        # ...
-        def can_be_viewed_by?(user); false; end
+    class ReadOnlyModel &lt; ActiveRecord::Base
+        def can_be_viewed_by?(user); true; end
         def can_be_destroyed_by?(user); false; end
-        def can_be_created_by?(user); true; end
-        def can_be_updated_by?(user); true; end
+        def can_be_created_by?(user); false; end
+        def can_be_updated_by?(user); false; end
+
+
+Note that you only need to override those hooks for which more specific
+controls are required.
 
 
 Copyright (c) 2008 Ralph M Churchill, released under the MIT license</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6e7012ccfc84dba94a2ce892c6a4a90d3382e70c</id>
    </parent>
  </parents>
  <author>
    <name>mrchucho</name>
    <email>mrchucho@mrchucho.net</email>
  </author>
  <url>http://github.com/mrchucho/easy-access/commit/9416beb975c3800a5ae3576437e2669104b169f3</url>
  <id>9416beb975c3800a5ae3576437e2669104b169f3</id>
  <committed-date>2008-11-18T06:31:35-08:00</committed-date>
  <authored-date>2008-11-18T06:31:35-08:00</authored-date>
  <message>Updated the README with more specific information.</message>
  <tree>9c31d0328615f5e0082ecbae59afeac50eed9fa4</tree>
  <committer>
    <name>mrchucho</name>
    <email>mrchucho@mrchucho.net</email>
  </committer>
</commit>
