<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - acts_as_audited security update Comments</title>
  <id>tag:opensoul.org,2008:/2006/9/7/acts_as_audited-security-update/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://opensoul.org/2006/9/7/acts_as_audited-security-update/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2006/9/7/acts_as_audited-security-update" rel="alternate" type="text/html"/>
  <updated>2008-08-01T16:26:56Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>FrankL</name>
    </author>
    <id>tag:opensoul.org,2006-09-07:620:7004</id>
    <published>2008-08-01T16:26:56Z</published>
    <updated>2008-08-01T16:26:56Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2006/9/7/acts_as_audited-security-update" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited security update' by FrankL</title>
<content type="html">&lt;p&gt;Zac,&lt;/p&gt;


	&lt;p&gt;It isn&#8217;t just a test stopper.  I have a model to audit that bombs in the run because it has several attr_accessible attributes.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Zac</name>
    </author>
    <id>tag:opensoul.org,2006-09-07:620:6617</id>
    <published>2008-06-25T22:20:49Z</published>
    <updated>2008-06-25T22:20:49Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2006/9/7/acts_as_audited-security-update" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited security update' by Zac</title>
<content type="html">&lt;p&gt;it &lt;strong&gt;appears&lt;/strong&gt; that the introduction of the attr_protected :audit_ids, wreaks havoc on my test suite.  When the acts_as_audited plugin is used in conjunction with the restful_authentication plugin (and you are auditing the User model), all of the tests bomb with the following error:&lt;/p&gt;


	&lt;p&gt;RuntimeError: Declare either attr_protected or attr_accessible for User, but not both.&lt;/p&gt;


	&lt;p&gt;If I comment out the attr_protected :audit_ids line in the acts_as_audited.rb file, then the errors go away.  I am trying to figure out a way to fix this without leaving the security hole mentioned above, but I wanted to throw this out there to see if anyone else had run into this, and could offer a possible solution.&lt;/p&gt;</content>  </entry>
</feed>
