<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,13 +5,11 @@ This plugin prevents that related records could be removed, when set.
 
 That initial proposal was created by Daniel Gatis and Rafael Ribeiro da Silva and transformed into a plugin by Davis Zanetti Cabral.
 
-
 ## Simple Example
 
-class Category &lt; ActiveRecord::Base
-  has_many :products, :dependent =&gt; :restrict
-end
-
+        class Category &lt; ActiveRecord::Base
+                has_many :products, :dependent =&gt; :restrict
+        end
 
 
 Copyright (c) 2008 Davis Zanetti Cabral, released under the MIT license
\ No newline at end of file</diff>
      <filename>README.mkdn</filename>
    </modified>
    <modified>
      <diff>@@ -18,9 +18,13 @@ module ActiveRecord
       def verify_restrict(reflection)
         case reflection.options[:dependent]
           when :restrict
-            module_eval &quot;before_destroy { |record| raise
-DestroyRestrictedAssociationError.new(record,
-#{reflection.name.inspect}) unless record.#{reflection.name}.blank? }&quot;
+            module_eval %Q{  
+              before_destroy do |record|  
+                unless record.#{reflection.name}.blank?  
+                  raise DestroyRestrictedAssociationError.new(record, #{reflection.name.inspect})  
+                end  
+              end  
+            }
           else
             raise ArgumentError, &quot;The :dependent option expects either
 :destroy, :delete_all, :nullify or :restrict</diff>
      <filename>lib/destroy_restricted.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ce1e2e73643cabbdeead8d4fecfd3b44a4a9229b</id>
    </parent>
  </parents>
  <author>
    <name>Davis Zanetti Cabral</name>
    <email>daviscabral@gmail.com</email>
  </author>
  <url>http://github.com/daviscabral/destroy_restricted/commit/13a67782f0f0a5e94ff16cdc8387dd4868313927</url>
  <id>13a67782f0f0a5e94ff16cdc8387dd4868313927</id>
  <committed-date>2009-03-23T01:35:52-07:00</committed-date>
  <authored-date>2009-03-23T01:35:52-07:00</authored-date>
  <message>Now is working again! \o/</message>
  <tree>2ba588deab19376f6e058008e60279d670ae6b4f</tree>
  <committer>
    <name>Davis Zanetti Cabral</name>
    <email>daviscabral@gmail.com</email>
  </committer>
</commit>
