<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -118,7 +118,8 @@ module ThoughtBot # :nodoc:
               protected = klass.protected_attributes || []
               accessible = klass.accessible_attributes || []
 
-              assert protected.include?(attribute.to_s) || !accessible.include?(attribute.to_s),
+              assert protected.include?(attribute.to_s) ||
+                (!accessible.empty? &amp;&amp; !accessible.include?(attribute.to_s)),
                      (accessible.empty? ?
                        &quot;#{klass} is protecting #{protected.to_a.to_sentence}, but not #{attribute}.&quot; :
                        &quot;#{klass} has made #{attribute} accessible&quot;)</diff>
      <filename>lib/shoulda/active_record/macros.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0def06d2b9ca43de86cc9ecc06f11ea64c565b2f</id>
    </parent>
  </parents>
  <author>
    <name>Mike Boone</name>
    <email>mike@boonedocks.net</email>
  </author>
  <url>http://github.com/boone/shoulda/commit/9065d991580e77239bf78159153b51380b1b3433</url>
  <id>9065d991580e77239bf78159153b51380b1b3433</id>
  <committed-date>2008-09-03T14:39:58-07:00</committed-date>
  <authored-date>2008-09-03T14:39:58-07:00</authored-date>
  <message>Updated should_protect_attributes to fix issue when attr_protected is used and attribute is missing.</message>
  <tree>4d7f97b10db97e5c025bdf637aa14b289f4334af</tree>
  <committer>
    <name>Mike Boone</name>
    <email>mike@boonedocks.net</email>
  </committer>
</commit>
