<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,6 +48,37 @@ You might have some database tables that are read-only. For example, there might
 With that in place, you cannot modify the properties of any +Location+ instances, even new ones not yet saved to the database. You cannot save, create, update or destroy (or +delete_all+) any records from the table.
 
 
+=== Associations
+
+You needn't worry that locking records or tables means they cannot be associated with anything. Using our geographic data example, we could have:
+
+  # This table is for reference only
+  class Town &lt; ActiveRecord::Base
+    table_locked
+    has_many :users
+  end
+  
+  class User &lt; ActiveRecord::Base
+    attr_locked :username
+    belongs_to :town
+  end
+
+With this setup, we can still modify associations as usual:
+
+  town = Town.find(:first)
+  user = User.find(:first)
+  
+  # Saves immediately
+  town.users = [user]
+  
+  # As does this
+  town.users &lt;&lt; user
+  
+  # This works too
+  user.town = town
+  user.save
+
+
 === License
 
 Copyright (c) 2007 James Coglan</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>148d9af20ed051a9b8f4c563aef6f029ab1a0207</id>
    </parent>
  </parents>
  <author>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </author>
  <url>http://github.com/jcoglan/attr_locked/commit/af8a31281503d34b8b029fd56c77aed291abc8a3</url>
  <id>af8a31281503d34b8b029fd56c77aed291abc8a3</id>
  <committed-date>2007-06-12T08:33:39-07:00</committed-date>
  <authored-date>2007-06-12T08:33:39-07:00</authored-date>
  <message>Updated readme to explain associations. Manual testing indicates that associations can be made with locked records.</message>
  <tree>9e40984ca14a0a2978b827c7806929ac9e66a288</tree>
  <committer>
    <name>James Coglan</name>
    <email>jcoglan@googlemail.com</email>
  </committer>
</commit>
