<?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 Comments</title>
  <id>tag:opensoul.org,2008:/2006/7/21/acts_as_audited/comments</id>
  <generator uri="http://mephistoblog.com" version="0.7.3">Mephisto Noh-Varr</generator>
  <link href="http://opensoul.org/2006/7/21/acts_as_audited/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
  <updated>2008-01-18T17:08:52Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brad Midgley</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:5053</id>
    <published>2008-01-18T17:08:52Z</published>
    <updated>2008-01-18T17:08:52Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brad Midgley</title>
<content type="html">&lt;p&gt;Thanks for the contribution to the community.&lt;/p&gt;


	&lt;p&gt;fwiw, I&#8217;m unable to get user logging to work with restful_authentication with any amount of current_user wrangling. I can see that write_audit is only called with one parameter so the user value always is set to nul. Have I configured it wrong? Is the execution not supposed to go from eg audit_create-&amp;gt;write_audit this way?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Pefmeister</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4913</id>
    <published>2008-01-03T22:42:34Z</published>
    <updated>2008-01-03T22:42:34Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Pefmeister</title>
<content type="html">&lt;p&gt;Hi Brandon,&lt;/p&gt;


	&lt;p&gt;Very nice plugin, just what I was looking for. Besides the BigDecimal problem, is there any chance to get hbtm relations audited? I&#8217;ve got a few structures that have m:n dependencies and would like to record changes to that relationship.&lt;/p&gt;


	&lt;p&gt;Thanks,
Pefmeister&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>cal</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4905</id>
    <published>2008-01-03T03:25:25Z</published>
    <updated>2008-01-03T03:25:25Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by cal</title>
<content type="html">&lt;p&gt;Newbie questions for this great plugin:&lt;/p&gt;


	&lt;p&gt;In the app/models/*.rb files I want audited, I&#8217;ve included an &#8220;acts_as_audited&#8221; line.  Do I need to specify the audited classes in the app/controllers/application_controller.rb as well?&lt;/p&gt;


	&lt;p&gt;On a possibly-related note, I&#8217;m having problems getting the Model.revision_at(date) working.  Revisions 0 and 1 seem to be duds.  Is this proper behavior?&lt;/p&gt;


&lt;pre&gt;
&amp;gt;&amp;gt; Comment.find(1421).revisions.size
=&amp;gt; 2
&amp;gt;&amp;gt; Comment.find(1421).revision(0).text
=&amp;gt; &quot;&quot; 
&amp;gt;&amp;gt; Comment.find(1421).revision(1).text
=&amp;gt; &quot;&quot; 
&amp;gt;&amp;gt; Comment.find(1421).revision(2).text
=&amp;gt; &quot;original text&quot; 
&amp;gt;&amp;gt; Comment.find(1421).revision(3).text
=&amp;gt; &quot;changed text&quot; 
&amp;gt;&amp;gt; Comment.find(1421).revision(4).text
=&amp;gt; &quot;changed text&quot; 
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4668</id>
    <published>2007-12-17T13:59:43Z</published>
    <updated>2007-12-17T13:59:43Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;micky: thanks, I recently made some updates and didn&#8217;t test them against rails 1.2.  It should be fixed now.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>mickey</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4665</id>
    <published>2007-12-17T13:05:17Z</published>
    <updated>2007-12-17T13:05:17Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by mickey</title>
<content type="html">&lt;p&gt;i can&#8217;t get this plugin to work with rails 1.2.6: undefined method `extract_options!&#8217;&lt;/p&gt;


	&lt;p&gt;Research revealed that this function was added with rails 2.0.1 recently. Probably the plugin was updated too but that update broke backwards compatibility?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Aaron</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4569</id>
    <published>2007-12-13T22:45:47Z</published>
    <updated>2007-12-13T22:45:47Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Aaron</title>
<content type="html">&lt;p&gt;It turns out that acts_as_audited can be used with ActiveScaffold simply by modifying a line in audit_sweeper.rb:&lt;/p&gt;


	&lt;p&gt;http://groups.google.com/group/activescaffold/browse_thread/thread/a717fa3c8b7433a6&lt;/p&gt;


	&lt;p&gt;Also, I modified the write_audit method in acts_as_audited.rb so that dates/times would be serialized in a &lt;span class=&quot;caps&quot;&gt;YAML&lt;/span&gt;-compatible format. (I had changed the default date and time formats for my application, and the plugin was using those formats to serialize changes.)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4517</id>
    <published>2007-12-11T17:12:54Z</published>
    <updated>2007-12-11T17:12:54Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Thanks Patrick.&lt;/p&gt;


	&lt;p&gt;I&#8217;m going to be using acts_as_audited in another project soon, so there should be a slew of updates, including removing the dependence on acts_as_list.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Patrick Crosby</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4516</id>
    <published>2007-12-11T16:53:51Z</published>
    <updated>2007-12-11T16:53:51Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Patrick Crosby</title>
<content type="html">&lt;p&gt;I wrote a blog post about &lt;a href=&quot;http://blog.patrickcrosby.com/posts/10-How-to-get-acts-as-audited-to-work-with-Rails-2&quot;&gt;how to get acts_as_audited to work in Rails 2&lt;/a&gt; for anyone who has been having trouble with it.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Aaron</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4374</id>
    <published>2007-12-05T19:32:21Z</published>
    <updated>2007-12-05T19:32:21Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Aaron</title>
<content type="html">&lt;p&gt;I&#8217;m using acts_as_audited with ActiveScaffold. When auditing is enabled and I try to open a nested scaffold, I get an exception. Apparently, this happens because acts_as_audited is not designed to handle callbacks for nested actions (due to components).&lt;/p&gt;


	&lt;p&gt;For example, the Clients scaffold shows a list of clients. If I click on the meeting registrations for a client, a nested scaffold showing the registrations should open. The sweeper tries to execute before_clients_nested, then before_meeting_registrations_table, then after_meeting_registrations_table, and then&#8212;an error, because the sweeper&#8217;s controller was set to nil the first time it executed an after callback, and then it tries to execute what should be the after callback for the clients controller. How difficult is it to modify acts_as_audited to work with components?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Wolfgang</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4344</id>
    <published>2007-12-03T08:04:41Z</published>
    <updated>2007-12-03T08:04:41Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Wolfgang</title>
<content type="html">&lt;p&gt;@Rails 2.0&lt;/p&gt;


Instead of messing with directory names,
simply set 
&lt;pre&gt;config.plugins = %W( acts_as_list acts_as_audited )&lt;/pre&gt;
in config/environment.rb</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Alex</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4309</id>
    <published>2007-11-29T00:10:21Z</published>
    <updated>2007-11-29T00:10:21Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Alex</title>
<content type="html">&lt;p&gt;acts_as_audited does work with Rails 2.0.&lt;/p&gt;


	&lt;p&gt;However, you have to go through a little bit of pain with acts_as_list &#8211; you might have to rename the plugin folder in vendor/plugins to &#8216;01_acts_as_list&#8217; or similar in order for it to load before acts_as_audited requires it.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Eric Pugh</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4305</id>
    <published>2007-11-28T15:40:18Z</published>
    <updated>2007-11-28T15:40:18Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Eric Pugh</title>
<content type="html">&lt;p&gt;Does acts_as_audited work with Rails 2.0?  I tried running the migration and get a missing acts_as_list method error, I assume because that is now a plugin in Rails 2&#8230;.&lt;/p&gt;


	&lt;p&gt;/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.99.0.8178/lib/active_record/base.rb:1334:in `method_missing&#8217;: undefined method `acts_as_list&#8217; for #&amp;lt;class:0x134aed0&gt; (NoMethodError)
        from /Users/epugh/Documents/code/hightechcville/trunk/vendor/plugins/acts_as_audited/lib/audit.rb:14&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4285</id>
    <published>2007-11-27T04:00:16Z</published>
    <updated>2007-11-27T04:00:16Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Sachin,&lt;/p&gt;


	&lt;p&gt;As I mentioned in a comment above, auditing associations is not a feature I needed, but I&#8217;d gladly accept a patch that implements it.&lt;/p&gt;


	&lt;p&gt;To solve your problem, you could change the habtm to a has_many :through and audit the join a model.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>ynw</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4267</id>
    <published>2007-11-25T15:41:03Z</published>
    <updated>2007-11-25T15:41:03Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by ynw</title>
<content type="html">&lt;p&gt;Nice plugin =)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Sachin</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:4166</id>
    <published>2007-11-16T01:40:49Z</published>
    <updated>2007-11-16T01:40:49Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Sachin</title>
<content type="html">&lt;p&gt;Howdy Brandon?&lt;/p&gt;


	&lt;p&gt;First off, great plugin, it is what I have been looking for and it fits my needs for the most part. However, I wonder if I could audit on association columns as well.  I mean, I have a Requirement model class that &#8220;habtm&#8221; Projects model class. So, anytime, a user makes a change only to associate/disassociate which projects are affected/not affected, system essentially made a change in the associated column (Projects model) which means that &#8220;audit&#8221; did not pick any change. This is a dilemma, even though, I understand that the change occurred in the Projects model yet from the user standpoint, the change occurred on the Requirements.&lt;/p&gt;


	&lt;p&gt;Please help! Any ideas to go about resolving this problem will greatly help.&lt;/p&gt;


	&lt;p&gt;Thank you very much for considering.
&#8212;Sachin&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>skwasha</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3961</id>
    <published>2007-10-15T03:43:28Z</published>
    <updated>2007-10-15T03:43:28Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by skwasha</title>
<content type="html">&lt;p&gt;So, since Restful Authentication defines login, password, and password as attr_accessible. Does that mean I can&#8217;t define my User model as auditable?&lt;/p&gt;


	&lt;p&gt;thanx!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Rustam</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3922</id>
    <published>2007-10-09T13:18:44Z</published>
    <updated>2007-10-09T13:18:44Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Rustam</title>
<content type="html">&lt;p&gt;wow I make it work with acts_as_rateable and hmp =)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brennan Dunn</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3721</id>
    <published>2007-09-16T17:26:44Z</published>
    <updated>2007-09-16T17:26:44Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brennan Dunn</title>
<content type="html">&lt;p&gt;I modified the plugin a bit to do some things I need it to do in my application.&lt;/p&gt;


&lt;strong&gt;Find all audits of an audited class&lt;/strong&gt;
acts_as_audited.rb
&lt;pre&gt;
        def audits(*args)
          options = {:conditions =&amp;gt; {:auditable_type =&amp;gt; class_name}, :order =&amp;gt; 'audits.version desc'}.merge!(extract_options_from_args!(args))
          Audit.find(:all, options)
        end
&lt;/pre&gt;

&lt;strong&gt;Supply either one or an array of audited classes, along with optional arguments, and have audit records returned&lt;/strong&gt;
audit.rb
&lt;pre&gt;
  def self.pool(classes, *args)
    classes = classes.is_a?(Array) ? classes : [classes]
    options = extract_options_from_args!(args).merge!({:conditions =&amp;gt; [&quot;audits.auditable_type in (?)&quot;, classes.map{|x| x.class_name}]})
    find(:all, options)
  end
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3693</id>
    <published>2007-09-14T14:15:44Z</published>
    <updated>2007-09-14T14:15:44Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Szymon,&lt;/p&gt;


	&lt;p&gt;The username field is just for those that don&#8217;t have a user model and just want to store the user as a string (e.g. using &lt;span class=&quot;caps&quot;&gt;HTTP&lt;/span&gt; basic auth).  If you have a user model, it will set the user_id and user_type, which should be all you need.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Szymon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3692</id>
    <published>2007-09-14T14:08:57Z</published>
    <updated>2007-09-14T14:08:57Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Szymon</title>
<content type="html">&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;I&#8217;m trying to use this plugin with restful_authentication (should be the same as acts_as_authenticated).&lt;/p&gt;


	&lt;p&gt;At first I was setting my config incorrectly (in my main environment.rb file instead of development.rb), but after fixing this mistake I get correctly logged user_id and user_type. However, I don&#8217;t get username logged.&lt;/p&gt;


	&lt;p&gt;I don&#8217;t have username field in my User model &#8211; I&#8217;ve got custom full_name method that uses 2 fields &#8211; first_name and last_name.&lt;/p&gt;


	&lt;p&gt;Is there any easy step by step guide how to make username work with custom field/method in User model?&lt;/p&gt;


	&lt;p&gt;Thank you in advance&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Daniel</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3590</id>
    <published>2007-09-04T09:37:08Z</published>
    <updated>2007-09-04T09:37:08Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Daniel</title>
<content type="html">&lt;p&gt;Hello,
first of all nice plugin. i have a problem like a few people here.
i can&#8217;t get the plugin to log user data. caching settings are done-
the plugin isn&#8217;t logging any user data on a linux production box, though.&lt;/p&gt;


	&lt;p&gt;For authentication i&#8217;m using the latest active_rbac version.
active_rbac provides a current_user function that is mixed in from active_rbac. current_user gives me a User record. does the plugin need the @user variable, or is a valid AR object from current_user enough? any hints to get it work ith the latest active_rbac version?&lt;/p&gt;


	&lt;p&gt;the latest active_rbac demo version can be found at:
svn://rubyforge.org/var/svn/active-rbac/active-rbac/trunk/demo&lt;/p&gt;


	&lt;p&gt;would be great if could have look why it isn&#8217;t working as axpected.&lt;/p&gt;


	&lt;p&gt;tia&lt;/p&gt;


	&lt;p&gt;Daniel&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3559</id>
    <published>2007-08-31T19:52:55Z</published>
    <updated>2007-08-31T19:52:55Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Sal Scotto,&lt;/p&gt;


	&lt;p&gt;&lt;code&gt;id&lt;/code&gt;, &lt;code&gt;type&lt;/code&gt;, &lt;code&gt;lock_version&lt;/code&gt;, &lt;code&gt;updated_at&lt;/code&gt; and &lt;code&gt;created_at&lt;/code&gt; are already ignored.  I could see situations where people would actually want to audit the other fields, so I don&#8217;t think that ignoring them in the plugin is a good idea. You can add those for your specific model.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Sal Scotto</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3558</id>
    <published>2007-08-31T19:27:04Z</published>
    <updated>2007-08-31T19:27:04Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Sal Scotto</title>
<content type="html">&lt;p&gt;you should add these to your exception filter
&#8216;changed_on&#8217;, &#8216;updated_at&#8217;, &#8216;created_at&#8217;, &#8216;created_on&#8217;, &#8216;updated_on&#8217;, &#8216;type&#8217;, &#8216;position&#8217;, &#8216;lock_version&#8217;, &#8216;parent_id&#8217;, &#8216;lft&#8217;, &#8216;rgt&#8217;, &#8216;quote&#8217;, &#8216;template&#8217;]&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Sal Scotto</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3557</id>
    <published>2007-08-31T19:25:21Z</published>
    <updated>2007-08-31T19:25:21Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Sal Scotto</title>
<content type="html">&lt;p&gt;nice to see this plug-in, I had created something very similar to this for my rails environment, with the exception of making it standalone gem usable at the model level, and not polymorphicly associating it with the audited class.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>CH Chee</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3467</id>
    <published>2007-08-25T14:21:30Z</published>
    <updated>2007-08-25T14:21:30Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by CH Chee</title>
<content type="html">&lt;p&gt;Hi Brandon&lt;/p&gt;


	&lt;p&gt;TQ for responding !&lt;/p&gt;


	&lt;p&gt;I have found the solution to the Big Decimal issue as it is actually an unfixed  rails issue and Michael Raiden has a temporary solution which actually works !&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;BTW&lt;/span&gt;, the email adress is my working email address and recently the spam filter had been tightened up. Were you getting the BW filter rejection ?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3465</id>
    <published>2007-08-25T13:50:18Z</published>
    <updated>2007-08-25T13:50:18Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Ch Chee,&lt;/p&gt;


	&lt;p&gt;If you would leave a real email address, you would have gotten my email the last time you posted explaining that I&#8217;m pretty sure the issue you&#8217;re running into is not an acts_as_audited issue.  I&#8217;ve never used ActiveScaffold, so I can&#8217;t help you out.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>CH Chee</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3453</id>
    <published>2007-08-25T05:10:57Z</published>
    <updated>2007-08-25T05:10:57Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by CH Chee</title>
<content type="html">&lt;p&gt;Hi Brandon&lt;/p&gt;


	&lt;p&gt;I am using acts_as_audited for audit trail in production environment.&lt;/p&gt;


	&lt;p&gt;In order to view the audits table within my apps, I had set up a 
controller with a ActiveScaffold config block.&lt;/p&gt;


	&lt;p&gt;AS displays fine in List but when I click next or any of the pages in 
the pagination, I get the following message&lt;/p&gt;


	&lt;p&gt;TypeError in Audits#update_table 
Showing vendor/plugins/active_scaffold/frontends/default/views/ 
_list_record.rhtml where line #7 raised:&lt;/p&gt;


	&lt;p&gt;BigDecimal can&#8217;t be coerced into BigDecimal&lt;/p&gt;


	&lt;p&gt;How can I workaround this BgDecimals issue.
&lt;span class=&quot;caps&quot;&gt;BTW&lt;/span&gt;, I have absolutely no issue in using Active Scaffold to display the other 200 _ tables in my apps . Only in the audits atble am I having the BifDecimnal issue.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Bilson</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3438</id>
    <published>2007-08-23T21:33:36Z</published>
    <updated>2007-08-23T21:33:36Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Bilson</title>
<content type="html">&lt;p&gt;If I am understanding this correctly, reverting to a specific version number actually reverts to the number preceding that number?  (i.e. to revert to the first version I need to select revision 2, to revert to version 3 I select and save version 4)&lt;/p&gt;


	&lt;p&gt;Or am I doing something incorrectly?&lt;/p&gt;


	&lt;p&gt;task.revision(4)
task.save
This will give me version 3.&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;BTW&lt;/span&gt; &#8211; This plugin is amazing.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Bhushan Ahire</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3427</id>
    <published>2007-08-23T07:20:50Z</published>
    <updated>2007-08-23T07:20:50Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Bhushan Ahire</title>
<content type="html">&lt;p&gt;Hi Brandon, 
I seems to gr8 plug in over acts_as_versioned in space saving.
I have one problem that,
If some change are made in the table and I dont know on what column changes are made, then how would I fetch this changes.
Or rather display the changes in well manner.
Because if I chack for any column with name then it give nil method error if for that column no changes are made.
Please reply if anyone has the solution.&lt;/p&gt;


	&lt;p&gt;Thanks&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3395</id>
    <published>2007-08-17T15:12:19Z</published>
    <updated>2007-08-17T15:12:19Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Peter,&lt;/p&gt;


	&lt;p&gt;There is a #revision method on Audit that will reconstruct the model for that revision using the audits.&lt;/p&gt;


	&lt;p&gt;At this time, there isn&#8217;t a way to populate the user field from the console.  It would probably be a nice addition though.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Peter</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3362</id>
    <published>2007-08-11T23:33:39Z</published>
    <updated>2007-08-11T23:33:39Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Peter</title>
<content type="html">&lt;p&gt;Regarding acts_as_paranoid, it seems that &lt;a href=&quot;http://www.fngtps.com/2007/07/quick-fix-for-acts_as_paranoid&quot;&gt;Rick does no longer endorse it&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Still being a Ruby newbie, I managed to write a revive method that will revive destroyed records. In order to get this to work, I added a before_destroy callback that will add every attribute&#8217;s value to the @changed_attributes hash so that the full state of the model is audited. I&#8217;ve posted a diff &lt;a href=&quot;http://pastie.caboo.se/86910&quot;&gt;here&lt;/a&gt;. If there&#8217;s a better way to do this, I&#8217;m all ears.&lt;/p&gt;


	&lt;p&gt;Using acts_as_audited, is there a way to have the user attributes in the audits table be populated also when using script/console or are the sweepers depending on being used through a running app?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Bill Pratt</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3350</id>
    <published>2007-08-09T18:21:15Z</published>
    <updated>2007-08-09T18:21:15Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Bill Pratt</title>
<content type="html">&lt;p&gt;I also noticed that this will create an audit trail even if no attributes are changed. This may be necessary for some instances, but I don&#8217;t care if nothing is actually modified. Changing line 167 in lib/acts_as_audited.rb to:&lt;/p&gt;


	&lt;p&gt;self.audits.create(:changes =&amp;gt; @changed_attributes, :action =&amp;gt; action.to_s, :user =&amp;gt; user) if !@changed_attributes.empty?&lt;/p&gt;


	&lt;p&gt;will stop this.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Bill Pratt</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3349</id>
    <published>2007-08-09T16:22:36Z</published>
    <updated>2007-08-09T16:22:36Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Bill Pratt</title>
<content type="html">&lt;p&gt;There was a comment made about the ability to ignore delete / destroy actions altogether. I agree, but I found an option that I liked better for my situation, acts_as_paranoid. This plugin overrides destroy by setting the deleted_at timestamp column to the current time. It also overrides find and count to ignore &#8220;deleted&#8221; items. This still effectively deletes them, but allows this plugin to resurrect them. Hope this helps someone, and Brandon, thanks for the great plugin.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3343</id>
    <published>2007-08-07T12:53:45Z</published>
    <updated>2007-08-07T12:53:45Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Bugbuster,&lt;/p&gt;


	&lt;p&gt;For each modification, acts_as_audited stores an array with the old attribute and the new attribute.  On create, the old attribute obviously didn&#8217;t exist, so it will always be nil.  So to get to the new attribute, you could do article.audits.first.changes[:title].last&lt;/p&gt;


	&lt;p&gt;Brandon&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Bugbuster</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3342</id>
    <published>2007-08-07T10:45:06Z</published>
    <updated>2007-08-07T10:45:06Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Bugbuster</title>
<content type="html">&lt;p&gt;Hi, I have one problem, I&#8217;m auditing an &#8220;Article&#8221; model wich has &#8220;Title&#8221; and &#8220;Text&#8221; fields. 
The problem is, when I create an article, the event is logged correctly, but in the &#8220;changes&#8221; column I have something like this:&lt;/p&gt;


&lt;h2&gt;&lt;del&gt;-&lt;/del&gt;
title:&lt;/h2&gt;&lt;h2&gt;- a title
text:&lt;/h2&gt;	&lt;p&gt;- some text&lt;/p&gt;




	&lt;p&gt;So when I access the Article in this way:
article.audits.first.changes
I get
{&#8220;text&#8221;=&amp;gt;[nil, &#8220;a title&#8221;], &#8220;title&#8221;=&amp;gt;[nil, &#8220;some text&#8221;]}&lt;/p&gt;


	&lt;p&gt;so that 
article.audits.first.changes[:title] returns &lt;span class=&quot;caps&quot;&gt;NIL&lt;/span&gt;&lt;/p&gt;


	&lt;p&gt;What&#8217;s wrong?
The problem is the same with every model and field, I always have a &lt;span class=&quot;caps&quot;&gt;NIL&lt;/span&gt; object first.&lt;/p&gt;


	&lt;p&gt;Thanks, and I hope that this will be useful for others with the same problem&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3333</id>
    <published>2007-08-05T12:05:52Z</published>
    <updated>2007-08-05T12:05:52Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Kris,&lt;/p&gt;


	&lt;p&gt;See the &#8220;Auditing in Rails&#8221; section above.  It shows that you need to declare &#8220;audit MyModel&#8221; and define current_user in &lt;code&gt;ApplicationController&lt;/code&gt;.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Kris</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3332</id>
    <published>2007-08-05T06:02:43Z</published>
    <updated>2007-08-05T06:02:43Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Kris</title>
<content type="html">&lt;p&gt;Hi Brandon,&lt;/p&gt;


	&lt;p&gt;Thanks for this plugin, I just have one quick question though..  I can&#8217;t seem to get the user columns filled in.&lt;/p&gt;


	&lt;p&gt;If I have done this in my dev environment:&lt;/p&gt;


&lt;pre&gt;
config.cache_classes = true
config.action_controller.perform_caching = true
&lt;/pre&gt;

	&lt;p&gt;and this&lt;/p&gt;


&lt;pre&gt;
class MyModel &amp;lt; ActiveRecord::Base
  acts_as_audited
end
&lt;/pre&gt;

	&lt;p&gt;where should I put the&lt;/p&gt;


&lt;pre&gt;
protected
  def current_user
    @user ||= User.find(session[:user])
  end
&lt;/pre&gt;

	&lt;p&gt;such that I may have the three user columns filled up?  Sorry if this is a very lame question.  I&#8217;m not too good with RoR. :)&lt;/p&gt;


	&lt;p&gt;Thanks so much in advance!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>hans reiser</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3254</id>
    <published>2007-07-17T22:48:53Z</published>
    <updated>2007-07-17T22:48:53Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by hans reiser</title>
<content type="html">&lt;p&gt;would be cool to have the possibility to completely disable the saving of a delete-action, since this makes trouble, the referring objects are not existing anymore&#8230;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3200</id>
    <published>2007-07-12T08:12:46Z</published>
    <updated>2007-07-12T08:12:46Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;John,&lt;/p&gt;


	&lt;p&gt;Please read the caveats section in the post and the plethora of other comments about the same issue.  &lt;code&gt;audit Model&lt;/code&gt; in the controller depends on Rails caching, and is therefore is disabled by default in development mode.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>John Devine</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3199</id>
    <published>2007-07-12T07:54:22Z</published>
    <updated>2007-07-12T07:54:22Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by John Devine</title>
<content type="html">&lt;h1&gt;This works:&lt;/h1&gt;	&lt;p&gt;class PatientDetail &amp;lt; ActiveRecord::Base&lt;/p&gt;



	&lt;pre&gt;&lt;code&gt;acts_as_audited&lt;/code&gt;&lt;/pre&gt;


&lt;h1&gt;end&lt;/h1&gt;&lt;h1&gt;if I add the following it ceases to work&lt;/h1&gt;	&lt;p&gt;class ApplicationController &amp;lt; ActionController::Base
  # Pick a unique cookie name to distinguish our session data from others&#8217;
  session :session_key =&amp;gt; &#8216;_ClinicCare_session_id&#8217;&lt;/p&gt;




	&lt;pre&gt;&lt;code&gt;audit PatientDetail&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;protected
def current_user
  @user = Goldberg.user ? Goldberg.user.name : '(not logged in)'
end&lt;/code&gt;&lt;/pre&gt;


&lt;h1&gt;end&lt;/h1&gt;


	&lt;p&gt;if I comment out &#8220;audit PatientDetail&#8221; it will work again but does not pass the user through to the log. I have checked to see if there is a value for @user and there is one.&lt;/p&gt;


	&lt;p&gt;I have run the tests and they pass.&lt;/p&gt;


	&lt;p&gt;Any help is good help:)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3070</id>
    <published>2007-06-18T19:02:33Z</published>
    <updated>2007-06-18T19:02:33Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;carlivar,&lt;/p&gt;


	&lt;p&gt;Just for you, I&#8217;ve updated acts_as_audited to include some sort of revisioning.  Check out my &lt;a href=&quot;/2007/6/18/revisioning-with-acts_as_audited&quot;&gt;latest post&lt;/a&gt; for more info.  I&#8217;d love to get your feedback.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>carlivar</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3046</id>
    <published>2007-06-11T07:15:10Z</published>
    <updated>2007-06-11T07:15:10Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by carlivar</title>
<content type="html">&lt;p&gt;The topic seems to have been dropped, but way back in the early comments you mention possibly adding versioning (allow individual fields to be reverted). I definitely vote for this!&lt;/p&gt;


	&lt;p&gt;I just took out acts_as_versioned from my app because it is simply too much hassle. Requires two database tables for every model which I got sick of maintaining. I also think acts_as_versioned gave me a big speed hit but I&#8217;m still testing that.&lt;/p&gt;


	&lt;p&gt;Anyway, the &#8220;log the diffs&#8221; model is much better for versioning &lt;span class=&quot;caps&quot;&gt;IMHO&lt;/span&gt;. Thanks!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>John</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3004</id>
    <published>2007-05-30T16:55:26Z</published>
    <updated>2007-05-30T16:55:26Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by John</title>
<content type="html">&lt;p&gt;Right on!  I had the cache vars set to true but rails reset one of them to false at a later spot in the dev environment config.&lt;/p&gt;


	&lt;p&gt;Everything seems to be working great.  Thanks for the plugin!  I remember implementing something like this in &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; about a year ago without a framework and it was a hassle.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3003</id>
    <published>2007-05-30T15:23:58Z</published>
    <updated>2007-05-30T15:23:58Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;John,&lt;/p&gt;


	&lt;p&gt;Sounds like you&#8217;re running in development mode.  Check out the caveats section in the post or the plugin&#8217;s &lt;span class=&quot;caps&quot;&gt;README&lt;/span&gt;.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>John</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3002</id>
    <published>2007-05-30T15:17:43Z</published>
    <updated>2007-05-30T15:17:43Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by John</title>
<content type="html">&lt;p&gt;Thanks for the info Brandon (and sorry for the multiple posts.  I got a proxy error and my post timed out several times.  It must have posted anyway).&lt;/p&gt;


	&lt;p&gt;I&#8217;ve tried using the &#8220;audit MyModel&#8221; within my App controller and the controller in question.  The only method I&#8217;ve been able to get the auditable plugin working is by adding acts_as_auditable to the model.  In this case it adds a record, but doesn&#8217;t put any data in the user fields.&lt;/p&gt;


	&lt;p&gt;I&#8217;m going to do some more debugging to figure out what I&#8217;m missing.  Do you have any other ideas?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:3000</id>
    <published>2007-05-30T13:36:40Z</published>
    <updated>2007-05-30T13:36:40Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;John,&lt;/p&gt;


	&lt;p&gt;I&#8217;m not familiar with userstamp, but acts_as_audited should &#8220;Just Work&#8482;&#8221; with acts_as_authenticated if you&#8217;re declaring &lt;code&gt;audit MyModel&lt;/code&gt; in your controller.&lt;/p&gt;


	&lt;p&gt;The comments on this post about &lt;code&gt;User.current_user&lt;/code&gt; are no longer relevant.  acts_as_audited was updated and that has been removed.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>John</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2995</id>
    <published>2007-05-30T03:25:11Z</published>
    <updated>2007-05-30T03:25:11Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by John</title>
<content type="html">&lt;p&gt;I&#8217;m using acts_as_authenticated and userstamp with acts_as_audited.  Has there been a resolution on how to get the current_user in your controller without interfering with these plugins?&lt;/p&gt;


	&lt;p&gt;Doesn&#8217;t including AuthenticatedSystem in my ApplicationController bring the current_user method to all controllers?&lt;/p&gt;


	&lt;p&gt;For userstamp I&#8217;m also setting User.current_user (as a cattr_accessor) so if this solution is better, I could use this as well.&lt;/p&gt;


	&lt;p&gt;I&#8217;ve read through many of the comments but haven&#8217;t reached a conclusion.  I&#8217;m running out of ideas.  Anyone?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>ANR</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2939</id>
    <published>2007-05-16T18:22:34Z</published>
    <updated>2007-05-16T18:22:34Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by ANR</title>
<content type="html">&lt;p&gt;Hello,&lt;/p&gt;


	&lt;p&gt;Has anyone used this plugin with Goldberg (link below)?   I am currently getting an error within Goldberg only when I have auditing enabled for a particular model.  If I disable auditing by commenting out of the application controller, I no longer get any errors.  This error only ocurrs when using Goldberg related functionality but the rest of the application works fine.&lt;/p&gt;


	&lt;p&gt;Below is a bit more details of the issue.  Dave from Goldberg Forums is currently assisting me with this but if anyone has used Goldberg and has a workaround, any guidance will be greatly appreciated.  Thanks.&lt;/p&gt;


	&lt;p&gt;Goldberg
http://goldberg.240gl.org/home
&#8220;Goldberg is a Ruby on Rails generator that enables you to set up fully-featured websites within minutes&#8221;&lt;/p&gt;


	&lt;p&gt;Steps to Reproduce:
Administration &amp;gt; Setup &amp;gt; Controllers / Actions
Choose Application and then a controller.
Then click on &#8216;Add New Action&#8217; and error occurs immediately.
It will also occur if you try clicking on other parts of interface or reaching other pages.&lt;/p&gt;


	&lt;p&gt;Environment:
Rails v1.2.3
Goldberg v0.2.0
MySQL 5.0.26-community-nt
WEBrick
Plugins: userstamp and acts_as_audited.&lt;/p&gt;


	&lt;p&gt;Sincerely,&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;ANR&lt;/span&gt;&lt;/p&gt;


Error 1:
&lt;code&gt;
NoMethodError in Goldberg/controller actionsController#new_for

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.controller_name
&lt;/code&gt;

Error 2:
&lt;code&gt;
 NoMethodError in Goldberg/controller actionsController#show

undefined method `controller_name' for nil:NilClass
&lt;/code&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2883</id>
    <published>2007-05-05T04:23:38Z</published>
    <updated>2007-05-05T04:23:38Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Tom,&lt;/p&gt;


	&lt;p&gt;There&#8217;s actually a &lt;a href=&quot;http://dev.rubyonrails.org/ticket/5391&quot;&gt;Rails bug&lt;/a&gt; that prevents you from using &lt;code&gt;attr_protected&lt;/code&gt; and &lt;code&gt;attr_accessible&lt;/code&gt; on the same model, and acts_as_audited uses &lt;code&gt;attr_protected :audit_ids&lt;/code&gt; to prevent malicious users from messing with the audit associations.&lt;/p&gt;


	&lt;p&gt;I&#8217;m not sure what you mean by your second question.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Tom Healey</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2879</id>
    <published>2007-05-04T16:12:17Z</published>
    <updated>2007-05-04T16:12:17Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Tom Healey</title>
<content type="html">&lt;p&gt;Brandon,
In addition to my previous post I was wondering why when I disabled the cache the acts_as_audited plugin was still &#8220;in effect&#8221;.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Tom Healey</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2878</id>
    <published>2007-05-04T15:48:17Z</published>
    <updated>2007-05-04T15:48:17Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Tom Healey</title>
<content type="html">&lt;p&gt;Ok lets see if I can &#8216;splain this.
I am using the beast forum software in my app
In the post and topic model it specifies that body and title are attr_accessible respectively. (these are the only places in our app we do this)
So I excepted all the other fields but I get this error
NoMethodError (You have a nil object when you didn&#8217;t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each):
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1671:in `attributes=&#8217;
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1505:in `initialize_without_callbacks&#8217;
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:225:in `initialize&#8217;
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/has_many_association.rb:13:in `new&#8217;
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/has_many_association.rb:13:in `build&#8217;
    .//app/controllers/topics_controller.rb:25:in `create&#8217;
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction&#8217;
    /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:95:in `transaction&#8217;
    .//app/controllers/topics_controller.rb:24:in `create&#8217;&lt;/p&gt;


	&lt;p&gt;I tried removing the attr_accessible on those filds but I got other errors. So I guess my question is why doesn&#8217;t it work even when I exclude all the fields except the attr_accessible fields.&lt;/p&gt;


	&lt;p&gt;Thanks in advance,
Tom&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2867</id>
    <published>2007-05-01T23:23:16Z</published>
    <updated>2007-05-01T23:23:16Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Sheldon,&lt;/p&gt;


	&lt;p&gt;You should be able to have your cake and eat it too.  Specifying audit in the controller simply calls acts_as_audited on the models IF it hasn&#8217;t already been called.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Sheldon Hearn</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2866</id>
    <published>2007-05-01T23:14:36Z</published>
    <updated>2007-05-01T23:14:36Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Sheldon Hearn</title>
<content type="html">&lt;p&gt;Great stuff, thanks.&lt;/p&gt;


	&lt;p&gt;If I don&#8217;t specify audit in ApplicationController, then the sweepers aren&#8217;t registered and so audits aren&#8217;t created with user information.&lt;/p&gt;


	&lt;p&gt;But if I specify audit on the controller, then the :except option to acts_as_audited is ignored on the observed models.&lt;/p&gt;


	&lt;p&gt;Would be nice to have my cake and eat it too. :-)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Tom</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2833</id>
    <published>2007-04-26T20:22:40Z</published>
    <updated>2007-04-26T20:22:40Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Tom</title>
<content type="html">&lt;p&gt;hey Brandon, thanks for the plugin&#8230;
The username column is not being filled in in the audit table. I think its because my user model uses login instead of username as the human readable string that identifies the user.
so in the audit.rb   I changed the line  self.username = user
to self.username = user.login. But it still doesn&#8217;t work.
Also current_user is already defined &#8220;we use the acts_as_auth..&#8221; plugin. Iam a little new  to ruby but I can&#8217;t figure out how to get the username column to be filled in correctly.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2633</id>
    <published>2007-04-12T13:35:23Z</published>
    <updated>2007-04-12T13:35:23Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Steve,&lt;/p&gt;


&lt;pre&gt;
$ rails --version
Rails 1.2.3
$ rails test
&amp;lt;truncated&amp;gt;
$ cd test
$ script/plugin install http://source.collectiveidea.com/public/rails/plugins/acts_as_audited
+ ./acts_as_audited/CHANGELOG
+ ./acts_as_audited/README
+ ./acts_as_audited/Rakefile
+ ./acts_as_audited/generators/audited_migration/USAGE
+ ./acts_as_audited/generators/audited_migration/audited_migration_generator.rb
+ ./acts_as_audited/generators/audited_migration/templates/migration.rb
+ ./acts_as_audited/init.rb
+ ./acts_as_audited/install.rb
+ ./acts_as_audited/lib/acts_as_audited.rb
+ ./acts_as_audited/lib/audit.rb
+ ./acts_as_audited/lib/audit_sweeper.rb
+ ./acts_as_audited/tasks/acts_as_audited_tasks.rake
+ ./acts_as_audited/test/acts_as_audited_test.rb
+ ./acts_as_audited/test/audit_test.rb
+ ./acts_as_audited/test/database.yml
+ ./acts_as_audited/test/fixtures/user.rb
+ ./acts_as_audited/test/schema.rb
+ ./acts_as_audited/test/test_helper.rb
&lt;/pre&gt;

	&lt;p&gt;It &#8220;works for me&#8482;&#8221; on a fresh rails 1.2.3 project. Feel free to email or &lt;a href=&quot;/about&quot;&gt;IM&lt;/a&gt; me with more details.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Steve</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2632</id>
    <published>2007-04-12T13:18:49Z</published>
    <updated>2007-04-12T13:18:49Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Steve</title>
<content type="html">&lt;p&gt;I cant even install this on Rails 1.2.3. The command line spits out the following errors&#8230;&lt;/p&gt;


&lt;pre&gt;/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/depende
ncies.rb:266:in `load_missing_constant': uninitialized constant CollectiveIdea::
ActionController (NameError)
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_su
pport/dependencies.rb:452:in `const_missing'
        from script/../config/../vendor/plugins/acts_as_audited/init.rb:8:in `lo
ad_plugin'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:40
1:in `load_plugin'
        from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_su
pport/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:40
1:in `load_plugin'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:18
5:in `load_plugins'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:18
5:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:18
5:in `load_plugins'
         ... 6 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/generate
.rb:1
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in 
`require'
        from script/generate:3&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Nicholas</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2608</id>
    <published>2007-04-06T19:43:02Z</published>
    <updated>2007-04-06T19:43:02Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Nicholas</title>
<content type="html">Brandon, This seems to be a great plugin. I have been trying to get it to work, but rails 1.2 doesn&#8217;t seem to like it when you use your models in the initialization of the ApplicationController. Has anyone else had this issue?
&lt;pre&gt;
class ApplicationController &amp;lt; ActionController::Base

  ...

  # Auditing - initalize autditing sweepers
  audit User, Account  

protected
  include AuthenticatedSystem

  ...

end

class Account &amp;lt; ActiveRecord::Base
  acts_as_audited
end

class User &amp;lt; ActiveRecord::Base
  acts_as_audited :except =&amp;gt; [:password]
end
&lt;/pre&gt;

The error:
&lt;pre&gt;
Expected C:/.../app/models/account.rb to define Account
C:/.../vendor/rails/activesupport/lib/active_support/dependencies.rb:
249:in `load_missing_constant'
C:/.../vendor/rails/activesupport/lib/active_support/dependencies.rb:
452:in `const_missing'
C:/.../vendor/rails/activesupport/lib/active_support/dependencies.rb:
464:in `const_missing'
C:/.../vendor/rails/activesupport/lib/active_support/dependencies.rb:
470:in `send'
C:/.../vendor/rails/activesupport/lib/active_support/dependencies.rb:
470:in `const_missing'
C:/.../app/controllers/application.rb:19
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_re
quire'
...
&lt;/pre&gt;

	&lt;p&gt;I am running rails 1.2.3. What I found weird is that it fails on the second model and not the first. If I comment out the Account model in the audit statement in Application Controller, it works. Any suggestions?&lt;/p&gt;


	&lt;p&gt;- Nicholas&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2603</id>
    <published>2007-04-05T14:16:25Z</published>
    <updated>2007-04-05T14:16:25Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Meng,&lt;/p&gt;


&lt;pre&gt;
audits = Audit.find(:all, :order =&amp;gt; 'created_at')

#or
audits.sorty_by(&#38;:created_at)
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Meng Kuan</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2601</id>
    <published>2007-04-05T08:57:19Z</published>
    <updated>2007-04-05T08:57:19Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Meng Kuan</title>
<content type="html">&lt;p&gt;Brandon, thanks for the cool plugin! Just installed it and works like a charm.&lt;/p&gt;


	&lt;p&gt;I am thinking of using the audits table as the source of input for a dashboard interface for my app. I am able to pull out several arrays of the relevant Audit records off the table and flatten them as one big array. E.g. latest list of messages, todo items, comments, etc. all in one array. However, before displaying them, Next I want to sort them according to created_at. I can update the audit.rb class directly and add the &#8220;def &amp;lt;=&amp;gt;(o)&#8221; method there but am wondering if there is a cleaner way of doing this?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Erik</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2576</id>
    <published>2007-03-31T23:25:26Z</published>
    <updated>2007-03-31T23:25:26Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Erik</title>
<content type="html">&lt;p&gt;Well, that didn&#8217;t take so long.  The answer is that referring to the classes in application.rb changed the order in which they were loaded, revealing a previously hidden bug in my code.&lt;/p&gt;


	&lt;p&gt;(In case anyone&#8217;s curious:  I had a local extension to the Point class.  When my extension was loaded after GeoRuby, it altered GeoRuby&#8217;s Point.  But when the extension was loaded first, or without GeoRuby, it created its own Point class.  The solution was to require GeoRuby and explicitly identify the Point class to be extended.)&lt;/p&gt;


	&lt;p&gt;Anyway, uh&#8230; yeah!  Cool plugin!  Sorry for the interruption!  Carry on!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Erik</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2573</id>
    <published>2007-03-31T23:00:31Z</published>
    <updated>2007-03-31T23:00:31Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Erik</title>
<content type="html">&lt;p&gt;I like this plugin, but I&#8217;ve run into a weird problem and I&#8217;m wondering if you have any advice on solving it.&lt;/p&gt;


	&lt;p&gt;In my application I have an Address model, with a :coords attribute, implemented with GeoRuby&#8217;s Point class.&lt;/p&gt;


	&lt;p&gt;I installed acts_as_audited and told it to audit Address.  It works fine in production mode, and in development mode with caching enabled.&lt;/p&gt;


	&lt;p&gt;However, when I run my unit tests, I get lots of errors about undefined methods on Point.  If I take the audit statement out, the errors go away.&lt;/p&gt;


	&lt;p&gt;Running a unit test in the debugger, I find that at the point when I try to call, say, Point.from_lon_lat (a class method), Point is a subclass of Object with no geometry-related methods, rather than the subclass of Geometry it should be.&lt;/p&gt;


	&lt;p&gt;Obviously I&#8217;m not asking you to study up on GeoRuby or debug my problem for me, but I thought you might have some thoughts on why the presence of an audit statement somehow makes Point refer to a different class.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2534</id>
    <published>2007-03-19T17:01:57Z</published>
    <updated>2007-03-19T17:01:57Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Adam,&lt;/p&gt;


	&lt;p&gt;That&#8217;s a great suggestion. I probably won&#8217;t have time to add features to this plugin for a month or so, but I&#8217;m open to taking patches.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Adam</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2530</id>
    <published>2007-03-18T21:27:57Z</published>
    <updated>2007-03-18T21:27:57Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Adam</title>
<content type="html">Thanks for the great plugin. I was wondering whether you could add a feature to selectively audit on action.
&lt;pre&gt;acts_as_audited :on =&amp;gt; [:update, :destroy]&lt;/pre&gt; 

	&lt;p&gt;Its just that I dont usually audit the creation of a record, as this stands as the record itself until the first change which is audited.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Deepak Kumar</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:2467</id>
    <published>2007-03-13T10:22:21Z</published>
    <updated>2007-03-13T10:22:21Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Deepak Kumar</title>
<content type="html">&lt;p&gt;Thanks for a simple, to the point plugin, works exactly as expected. Saved a lot of time. Is it listed in Rails Wiki, I could not find it there, had to rely on Google. Anyway great work.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:1455</id>
    <published>2007-02-22T21:31:27Z</published>
    <updated>2007-02-22T21:31:27Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;josh,&lt;/p&gt;


	&lt;p&gt;There already is a model for it:&lt;/p&gt;


&lt;pre&gt;
Audit.find(:all, :order =&amp;gt; &quot;created_at&quot;)
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>josh</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:1454</id>
    <published>2007-02-22T21:12:27Z</published>
    <updated>2007-02-22T21:12:27Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by josh</title>
<content type="html">&lt;p&gt;First off, thanks Brandon for an outstanding plugin. I am curious  though, if it is possible to return(/display) all &lt;strong&gt;audits in total and  chronologically&lt;/strong&gt; as opposed to on a per user basis? I am a bit new to ror in general but I was thinking maybe I could make an additional model that also refers to the audits table. Would that work? Poor form? Is there another way? Thanks for any insight.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:1151</id>
    <published>2007-02-14T21:31:39Z</published>
    <updated>2007-02-14T21:31:39Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Skiz,&lt;/p&gt;


	&lt;p&gt;I use it with acts_as_authenticated, it should &#8220;Just Work&#8221;(TM). Have you tried it in production mode? It wasn&#8217;t working for me in development the one time I tried (even with caching enabled), but I know it works in production.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Skiz</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:1148</id>
    <published>2007-02-14T18:10:18Z</published>
    <updated>2007-02-14T18:10:18Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Skiz</title>
<content type="html">&lt;p&gt;I&#8217;ve been trying to interface this with the existing acts_as_authenticated for current_user support, but I cannot for the life of me update the username or associated user. Someone above has had this previously but did not provide any information.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:1030</id>
    <published>2007-02-10T22:19:37Z</published>
    <updated>2007-02-10T22:19:37Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Chris,&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;Does the user object need to have exactly the same field names as the audits table (user_id, user_type, and username) for it to actually work?&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;Nope.&lt;/p&gt;


	&lt;p&gt;Did you declare the models to audit in the controller?&lt;/p&gt;


&lt;pre&gt;
class ApplicationController &amp;lt; ActionController::Base
  audit User, List, Item
end
&lt;/pre&gt;

	&lt;p&gt;If you did, and it is auditing changes and not the user, then I would check to make sure that your current_user method on your controllers returns an ActiveRecord object or a string.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Chris</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:1026</id>
    <published>2007-02-10T16:05:25Z</published>
    <updated>2007-02-10T16:05:25Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Chris</title>
<content type="html">&lt;p&gt;I&#8217;ve finally got the plugin to work!!! It&#8217;s really great.  It&#8217;s what I actually need.&lt;/p&gt;


	&lt;p&gt;But, I need more help.  Does the user object need to have exactly the same field names as the audits table (user_id, user_type, and username) for it to actually work?  I tried to turn on caching for the dev environment, and to put the current_user method in the application controller, but it still doesn&#8217;t log anything under the 3 user columns.&lt;/p&gt;


	&lt;p&gt;What must I do?  Am I missing anything at all?  Thanks!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:896</id>
    <published>2007-01-25T21:41:14Z</published>
    <updated>2007-01-25T21:41:14Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Camilia:&lt;/p&gt;


	&lt;p&gt;Nope.  It doesn&#8217;t record changes to associations.  That&#8217;s not a feature that I need, but patches are welcome.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Camila</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:895</id>
    <published>2007-01-25T18:39:52Z</published>
    <updated>2007-01-25T18:39:52Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Camila</title>
<content type="html">&lt;p&gt;Ok I finally got it. I didn`t know where to make the changes; now I understand that in every model you want to audit you have to put: act_as_audited
Now here is my new question: I have a table &#8220;people&#8221; that is related wuith the table &#8220;area&#8221; through the table &#8220;peoplearea&#8221;, meaning that each person may have many areas. The &#8220;peoplearea&#8221; and the &#8220;people&#8221; models are being audited, and it works. The problem is that if I&#8217;m editing a person info, and I add or delete a new area, the &#8220;audits&#8221; table show this changes as destroying or creating the table &#8220;peoplearea&#8221; and  I need to be saved as a change made over the person. Is this possible with this plugin?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Camila</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:892</id>
    <published>2007-01-25T15:30:40Z</published>
    <updated>2007-01-25T15:30:40Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Camila</title>
<content type="html">&lt;p&gt;I&#8217;m reading about the plugin and I knows is what I nees because I need to ansewer the same kind of questions than Brandon. The problem is that is my first time with ruby, and with plugin, and eventhough I understand english, I ``m not really sure how can i use this wonderful act_as_audited&#8230; I`m working on that. so if anybody has something that explains it in spanish, or step by step in english, I&#8217;ll be thankful, happy, and closer to get this think working.
thanks!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Chris</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:793</id>
    <published>2007-01-20T02:52:40Z</published>
    <updated>2007-01-20T02:52:40Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Chris</title>
<content type="html">&lt;p&gt;Thanks Brandon.&lt;/p&gt;


	&lt;p&gt;I am now into 1.2.1.  Tried it again, but i&#8217;m still getting the same error.&lt;/p&gt;


	&lt;p&gt;What do you think could be wrong? Any insight on this?&lt;/p&gt;


	&lt;p&gt;Many thanks!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:720</id>
    <published>2007-01-10T04:33:57Z</published>
    <updated>2007-01-10T04:33:57Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">&lt;p&gt;Chris,&lt;/p&gt;


	&lt;p&gt;Not sure what is causing that error.  What version of Rails are you using?  This plugin was developed using 1.1.x, but I&#8217;m using it in a 1.2 project now, so I know it works.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Chris</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:717</id>
    <published>2007-01-06T03:10:25Z</published>
    <updated>2007-01-06T03:10:25Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Chris</title>
<content type="html">&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;A newbie here.. I thought that this plugin is the best suited for my need.  I am able to install it, but I cannot move on after executing &lt;pre&gt;ruby script/generate audited_migration add_audits_table&lt;/pre&gt;&lt;/p&gt;


I get some error.  It says:
&lt;pre&gt;script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/act
ive_support/dependencies.rb:123:in `const_missing': uninitialized constant ActionController (NameError) from script/../config/../vendor/plugins/acts_as_audited/init.rb:8:in
`load_plugin' from script/../config/../vendor/rails/railties/lib/initializer.rb:348
:in `load_plugin' from ...&lt;/pre&gt;

	&lt;p&gt;Can you please help me? Many thanks!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Craig White</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:714</id>
    <published>2006-12-28T19:50:41Z</published>
    <updated>2006-12-28T19:50:41Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Craig White</title>
<content type="html">&lt;p&gt;There is something wrong and I can&#8217;t lay my finger on it. In a view that lists found entries from the audits table, these work&#8230;
&amp;lt;%= audit.auditable_type %&amp;gt;
&amp;lt;%= audit.username %&amp;gt;
&amp;lt;%= audit.action %&amp;gt;
&amp;lt;% for change in audit.changes &lt;span&gt;&amp;gt;&amp;lt;&lt;/span&gt;= change &lt;span&gt;&amp;gt;&lt;br /&gt;&amp;lt;&lt;/span&gt; end %&amp;gt;
&amp;lt;%= audit.created_at %&amp;gt;
&amp;lt;%= audit.auditable_id %&amp;gt;&lt;/p&gt;


	&lt;p&gt;but no matter what, this will toss an syntax error&#8230;&lt;/p&gt;


	&lt;p&gt;&amp;lt;%= (audit.auditable_type == &#8216;Placement&#8217; ? (link_to &#8216;Show Placement&#8217;, { :controller =&amp;gt; &#8216;placements&#8217;, :action =&amp;gt; &#8216;show&#8217;, :id =&amp;gt; audit.auditable_id } )) %&amp;gt;&lt;/p&gt;


	&lt;p&gt;so I cannot make conditional links to the actual records which is something I would really like to do&lt;/p&gt;


	&lt;p&gt;Craig&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Peer Allan</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:681</id>
    <published>2006-11-29T17:22:53Z</published>
    <updated>2006-11-29T17:22:53Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Peer Allan</title>
<content type="html">Whoops, I guess I should get a little more sleep before attempting to tackle blatantly obvious tasks.  Thanks Brandon.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:680</id>
    <published>2006-11-29T14:44:56Z</published>
    <updated>2006-11-29T14:44:56Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Peer Allen:

Ah, I didn't notice it when I first glanced at your comment, but it should be &lt;code&gt;audited_migration&lt;/code&gt;, not &lt;code&gt;audited_model&lt;/code&gt;.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:679</id>
    <published>2006-11-29T14:42:52Z</published>
    <updated>2006-11-29T14:42:52Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Peer Allen:

Sounds like it's not picking up the generators in the plugins directory. What happens when you run &lt;code&gt;script/generate&lt;/code&gt; without any arguments?  Here's what I see for installed generators:

&lt;pre&gt;
Installed Generators
  Plugins: audited_migration
  Builtin: controller, integration_test, mailer, migration, model, plugin, scaffold, session_migration, web_service
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Peer Allan</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:678</id>
    <published>2006-11-29T14:02:50Z</published>
    <updated>2006-11-29T14:02:50Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Peer Allan</title>
<content type="html">Hi Brandon, I saw you plugin and thought it would work perfectly for my needs.  However I am having small problem when I try to run the migration &quot;script/generate audited_model add_audits_table&quot; I just get this error &quot;Couldn't find 'audited_model' generator&quot;  I assume I am doing something wrong, but I can't figure out what it is?</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:674</id>
    <published>2006-11-19T05:43:43Z</published>
    <updated>2006-11-19T05:43:43Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">vasudeva: I've made some updates to the plugin that will allow you to set the user in the audit record to a string in addition to an ActiveRecord model.  Just add a method to your controller called &lt;code&gt;current_user&lt;/code&gt; that returns the username.  Let me know how it works out for you.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>vasudeva</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:671</id>
    <published>2006-11-14T18:34:44Z</published>
    <updated>2006-11-14T18:34:44Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by vasudeva</title>
<content type="html">Great.  So far the plugin works beautifully otherwise; it's exactly what I needed.  Can't show it to the boss until we can successfully track changes by user.  I'll probably be reloading this page twice daily to see if you find a way to work that in.  ;)</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:670</id>
    <published>2006-11-14T18:20:39Z</published>
    <updated>2006-11-14T18:20:39Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Chaz: no, I hadn't, but that's a great idea! Thanks for pointing that out. I'll try to incorporate that in the next couple weeks.

vasudeva: at the moment, there isn't really a way to do that.  But I'm going to be working on some changes in the next couple weeks.  I'll take that into account.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>vasudeva</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:669</id>
    <published>2006-11-14T18:02:26Z</published>
    <updated>2006-11-14T18:02:26Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by vasudeva</title>
<content type="html">Any thought on how this plugin could use Apache's REMOTE_USER variable to integrate with users that have authenticated against LDAP but have no associated model/table?</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Chaz</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:656</id>
    <published>2006-11-07T17:29:36Z</published>
    <updated>2006-11-07T17:29:36Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Chaz</title>
<content type="html">Have you considered using Sweepers to figure out the current user? I stole the idea from the Rails recepies book to add auditing to one of my projects, and it's worked well thus far.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:586</id>
    <published>2006-10-20T09:23:50Z</published>
    <updated>2006-10-20T09:23:50Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">NeilS,

The user_id is a big hack that I'm not very happy with.  The way I suggest to do it above doesn't actually work, it causes concurrency issues.  Someone actually suggested overwriting the ActiveRecord save method to accept the user as an argument.  I'm hesitant to do that because I don't want to change the API, but that may be the best solution.

As to your second question, yes, I think you could use a polymorphic association between the Audit model and your Administrator and Client models.  I'll look into it.

Thanks,
Brandon</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>NeilS</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:585</id>
    <published>2006-10-20T07:52:24Z</published>
    <updated>2006-10-20T07:52:24Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by NeilS</title>
<content type="html">Hi.

This plugin is great; exactly what I wanted - although it took me quite a while to get the user_id correctly logging my acts_as_authenticated user; and in a horribly hacky way. Is there a recommended technique to achieve this?

On a second note, I have two classes of people updating my records; Administrators update records at the back end, and Clients can update their own records at the front end.

At the moment, my audit table contains my user_id, but I don't know if that refers to an Administrator or a Client. Is there a way I can record which model that user_id refers to? (Or can this be a feature request if there's no way to do it! :-)

Thanks for this great plugin - and any advice will be warmly received.
NeilS.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Tim</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:584</id>
    <published>2006-10-12T09:53:14Z</published>
    <updated>2006-10-12T09:53:14Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Tim</title>
<content type="html">Hello

This is a fantastic plugin! Previously I was using my own solution to create an audit trail, but that involved adding code into every update method - messy and certainly not DRY. This acts_as_audited is really neat.

There's only one downside compared with the manual approach I used to use - I need to record the reason /why/ a change was made. Is there any way the plugin could be modified so that it could take an optional parameter and record a reason for the change? I think this would be very useful for most people who need to keep an aufit trail.

Many thanks for a brilliant plugin.

Tim</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:583</id>
    <published>2006-10-10T19:27:15Z</published>
    <updated>2006-10-10T19:27:15Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Greg,

ActiveRecord handles that for you, so you should just be able to treat the changes as a hash.

&lt;pre&gt;
@user.autits.first.changes[:username]
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Greg Hauptmann</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:582</id>
    <published>2006-10-10T17:16:03Z</published>
    <updated>2006-10-10T17:16:03Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Greg Hauptmann</title>
<content type="html">Hi,

Does anyone have the code to read in the changes (stored in yaml) and display them in a view they could post?    For a given record in the audits table for example, and the yaml that is stored in the changes column.  I have read in the yaml from the changes column for a given audit table entry, but just now wondering how to consume this and display it (my first time with YAML)


Thanks
Greg</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>opensoul.org &amp;raquo; acts_as_audited Security update</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:580</id>
    <published>2006-09-07T21:11:39Z</published>
    <updated>2006-09-07T21:11:39Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by opensoul.org &amp;raquo; acts_as_audited Security update</title>
<content type="html">[...] Thanks to Michael Schuerig for pointing out that malicious users could unassociate your audit records due to the use of has_many in acts_as_audited. has_many :audits creates an attribute accessor called audit_ids on the model objects that you declare acts_as_audited, which could allow users to pass an array of ids that would overwrite the actual audit records. [...]</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Greg Hauptmann</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:579</id>
    <published>2006-09-05T18:05:07Z</published>
    <updated>2006-09-05T18:05:07Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Greg Hauptmann</title>
<content type="html">Brandon - do you mind if I could ask for a quick explanation of how the userid passing and contexts work here.  I'm just a little confused (still new to Ruby).  For example:

* in your controller set User.curent_user to @active_rbac_user (i.e the userid).  So is this mean I'm effectively creating a class User with an attribute &quot;current_user&quot; on the fly?  

* In the Model class one does &quot;acts_as_audited :user_class_name =&amp;gt; 'User', :user_method =&amp;gt; 'current'&quot;, and cattr_accessor :current_user
- can the model context &quot;see&quot; the User object created in the controller?  How does this work?
- how does the &quot;cattr_accessor&quot; help here?  

Thats the main thing for me, just trying to understand how the userid is passed through.  I also have several other questions if you've got time, posted at: http://www.ruby-forum.com/topic/79999#new 

Thanks again</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brian Hogan</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:578</id>
    <published>2006-09-05T11:39:58Z</published>
    <updated>2006-09-05T11:39:58Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brian Hogan</title>
<content type="html">The way I do it is by allowing the save method to take an optional parameter. This way nothing breaks. If the developer doesn't pass the id through the save or update_attributes, then the record does not get stamped.  I'll send you a link to my code (it's tiny) and you can see if it would work for you.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:577</id>
    <published>2006-09-05T09:52:23Z</published>
    <updated>2006-09-05T09:52:23Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Brian,

I agree, I don't like it either.  However, it is the most unobtrusive way I can think of.  I want to stay way from modifying the API so that it can be added and removed from apps without breaking or having to change all your code.  With the current implementation, you only have to change a few lines in your login code.

What would be ideal is if Rails' around filter didn't force you to have separate before_filter and after_filter methods so you could just use a block for auditing.  Something like:

&lt;pre&gt;
Audit.as_user(current_user) do
  // continue processing filter chain &amp; actions
end
&lt;/pre&gt;

That being said, I am interested in seeing your implementation.  Feel free to email me a patch.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:576</id>
    <published>2006-09-05T09:37:06Z</published>
    <updated>2006-09-05T09:37:06Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Greg,

I don't use ActiveRBAC, but what I did with acts_as_authenticated is replace the use of an instance variable with User.current_user.  So in your code, replace all instances of @active_rbac_user with User.curent_user.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brian Hogan</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:575</id>
    <published>2006-09-05T08:30:43Z</published>
    <updated>2006-09-05T08:30:43Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brian Hogan</title>
<content type="html">@Brandon:

I think this is awesome. However, there's one thing I don't like and that's the use of cattr_accessor for the user id.

I have a plugin that stores the user id on the table in the created_by field. It was based on a similar plugin which uses the same method as you.  My approach was to overload the save and update_attributes methods of ActiveRecord to take an optional parameter.. the user id.   

If you're interested in refactoring your plugin to do something similar, hit me up at my email and we could discuss some more. I want to use your plugin and may modify it myself but I wanted to talk to you first.

I love the plugin... great job!!!!</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Greg Hauptmann</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:574</id>
    <published>2006-09-05T06:57:19Z</published>
    <updated>2006-09-05T06:57:19Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Greg Hauptmann</title>
<content type="html">PSS.  Can anyone help?  Still can't work out how to get the userid column to log.

I use ActiveRBAC for user authentication (just for background) and have acts_as_audited working for everything but for logging the userid.  I'm not exactly sure how to setup the required class/objects with the appropriate method for acts_as_audited that it needs to get the username.   Can anyone help out with:

a) how to setup the appropriate class
b) probably more to the point, how to make sure it's in the required context for acts_as_audited to get (i.e. I guess it needs to be visible from the .rb even though it would no doubt get created in the controller which has access to the session no?

For background, with ActiveRBAC I can issue the following to get the userid &quot;current_user.login&quot; which is based on use of an ActiveRBAC helper (I think helpers are available in views).   Extract from the rbac_helper.rb:
=============================
  def current_user
    return @active_rbac_user unless @active_rbac_user.nil?

    @active_rbac_user = 
            if session[:rbac_user_id].nil? then
              ::AnonymousUser.instance
            else
              ::User.find(session[:rbac_user_id])
            end

    return @active_rbac_user
  end
=========================

   
Tks in advance</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>GregH</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:573</id>
    <published>2006-08-31T19:12:53Z</published>
    <updated>2006-08-31T19:12:53Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by GregH</title>
<content type="html">Brandon - understood.  Sounds good.

I was actually thinking of a slightly different user case however.  The concept I have is that there is a (a) user interaction audit/event type log and (b) the actual database data change audit trail [i.e. acts_as_audited].  

For (a) the concept would be an audit entry (one record) for each user action carried out.  This could often be a simple action that changes one data in one table, but at times could be more complex and make changes to numerous tables (e.g. 5/4/06 7.23am, GregH, Submitted request for purchase all cart items).  This could be just one table that contained this.

What would then be cool is to link this user level event audit to the underlying database tables/rows which were changed (i.e. the acts_as_audited table rows).  So this might involve acts_as_audited code picking up a user action audit row ID.  

What do you think?  Is there a better way to do this?  Do you think acts_as_audited could be easily modified to do what I was suggesting?

Cheers</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:572</id>
    <published>2006-08-31T09:14:24Z</published>
    <updated>2006-08-31T09:14:24Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">GregH,

No, serialization is not an issue for different versions of ruby.  The serialized verson is actually just a YAML dump of the attributes.

auditable_id is the primary key of the originial record, auditable_type is the model of that record.  acts_as_audited doesn't actually know anything about the HTTP reqeust or controller.  It works the same way inside of an HTTP request as it does from the command line.

What I've done on the frontend is use naming conventions to link to the original record.  If my model name is &quot;User&quot;, then I assume the controller name is &quot;users&quot;. So, if I have an audit record with auditable_id =&gt; 10 and auditable_type =&gt; User, then I create a link by doing:

&lt;pre&gt;
&amp;lt;% link_to 'record', :controller =&gt; audit.autidable_type.downcase.pluralize, :action =&gt; 'show', :id =&gt; audit.auditable_id %&amp;gt;
&lt;/pre&gt;

Which creates a link to &quot;/users/show/10&quot;.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>GregH</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:571</id>
    <published>2006-08-30T23:07:50Z</published>
    <updated>2006-08-30T23:07:50Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by GregH</title>
<content type="html">PS Does &quot;auditable_id&quot; provide a unique identify for all data rows that changed for a particular user HTTP request into a controller does it?  (i.e. if one action, e.g. user commits a multi-page form, the same auditable_id is used for all the database changes?).  

If this is the case could potentially it be a good idea to have an auditable_id type table which has a controller focused summary of the event (from the user perspective).  If the user was then going to review audit they could see the overall summary of actions they have performed, and then click on one to then bring up the detailed data changes associated with this event?  Comments?</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>GregH</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:570</id>
    <published>2006-08-30T22:54:02Z</published>
    <updated>2006-08-30T22:54:02Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by GregH</title>
<content type="html">Hi,

Does the serialization approach introduce a possible issue for existing data if Ruby itself is upgraded?   (I come from java where one has to be quite careful here)

Tks
Greg</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:569</id>
    <published>2006-08-29T14:39:10Z</published>
    <updated>2006-08-29T14:39:10Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Dewet,

No, I haven't really used engines much. I tried using login_engine and found that it was going to take more work to get it working how I wanted than to just use one of the generator plugins.

namxam,

You're right, it is poor design. And it would be even poorer if Rails ran in a threaded environment.  Ideally there should be some type of security system injected between the controller and the model that would audit what users did. Unfortunately that would be a lot more complicated than this simple plugin. Putting a class method on User that keeps track of the current user is the cleanest solution I can think of.  I'm interested if you have any ideas.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>namxam</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:568</id>
    <published>2006-08-29T14:08:49Z</published>
    <updated>2006-08-29T14:08:49Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by namxam</title>
<content type="html">I am not 100% sure about this one, but isn't it a bad idea to access the user id by calling User.current. I thought models shouldn't have access to such data. Or at least I always put such a call in the application controller / helper.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Dewet</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:567</id>
    <published>2006-08-28T14:15:17Z</published>
    <updated>2006-08-28T14:15:17Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Dewet</title>
<content type="html">Great plugin;  ever thought of hooking it into the login_engine?</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>An&#237;bal Rojas</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:566</id>
    <published>2006-08-21T22:24:38Z</published>
    <updated>2006-08-21T22:24:38Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by An&#237;bal Rojas</title>
<content type="html">Thanks a lot for such great plugin, and I must agree wth you that  sometimes there is no need for versions, but for a simple audit trail.

Off Topic: This is just a quick note to invite you to register at RubyCorner.com, a meeting place for people interested in the Ruby Programming Language  or any of the related technologies.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:565</id>
    <published>2006-08-15T10:07:11Z</published>
    <updated>2006-08-15T10:07:11Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Yeah, you're right.  It's committed.  Thanks!</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Michael Schuerig</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:564</id>
    <published>2006-08-15T09:46:56Z</published>
    <updated>2006-08-15T09:46:56Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Michael Schuerig</title>
<content type="html">One more thing... I think 

  has_many :audits, :as =&amp;gt; :auditable

should *not* nullify the referring foreign keys on destruction of the audited object. The auditable_id doesn't serve any purpose in the DB after the object is destroyed, but it is the only thing that ties together the events that happened to an object during its lifetime -- even after it is gone.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:563</id>
    <published>2006-08-14T10:19:19Z</published>
    <updated>2006-08-14T10:19:19Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Michael,

Thanks!  I've committed that along with serializing the changes.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Michael Schuerig</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:562</id>
    <published>2006-08-14T03:07:24Z</published>
    <updated>2006-08-14T03:07:24Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Michael Schuerig</title>
<content type="html">Here's another change, I hope you can decipher it after the blog has mangled the formatting. This version of write_attribute ensures that the comparison of attributes is done with old and new values properly typecast. Also, it writes the new value every time it is called, not just the first time.

  def write_attribute(attr_name, attr_value)
   attr_name = attr_name.to_s
    if audited_attributes.include?(attr_name)
      @changed_attributes ||= {}
      if old_entry = @changed_attributes[attr_name]
        old_value = old_entry.first
      else
        old_value = self[attr_name]
      end
      super(attr_name, attr_value)
      new_value = self[attr_name]
      if new_value != old_value
        @changed_attributes[attr_name] = [old_value, new_value]
      end
    else
      super(attr_name, attr_value)
    end
  end</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:561</id>
    <published>2006-08-12T10:05:24Z</published>
    <updated>2006-08-12T10:05:24Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Michael,

Thanks for the suggestion.  I had thought about doing that and for some talked myself out of it (don't remember why).  I will probably switch to that.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Michael Schuerig</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:560</id>
    <published>2006-08-11T11:28:56Z</published>
    <updated>2006-08-11T11:28:56Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Michael Schuerig</title>
<content type="html">Sigh, your blog can't handle the less-than sign.

class Audit; serialize :changes; end</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Michael Schuerig</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:559</id>
    <published>2006-08-11T11:27:24Z</published>
    <updated>2006-08-11T11:27:24Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Michael Schuerig</title>
<content type="html">IMHO, you should use the serialization feature of ActiveRecord::Base. It as easy as

 class Audit</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Kevin Marsh</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:558</id>
    <published>2006-08-04T22:07:06Z</published>
    <updated>2006-08-04T22:07:06Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Kevin Marsh</title>
<content type="html">Wouldn't you know it... I just implemented something like this using callbacks. Wrangling with Observer proved to be too much of a hassle for the time being but this is much cleaner!</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:557</id>
    <published>2006-08-01T10:31:08Z</published>
    <updated>2006-08-01T10:31:08Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Eric,

Thanks for your feedback.  I think you're exactly right.  I wrote acts_as_audited for a specific purpose: an audit trail.  I want to be able to answer questions like, &quot;show me all of the changes made by Sally&quot;, or &quot;show me all of the changes for July 31&quot;.  I could have done this all with acts_as_versioned, but not as easily, and I didn't want to double the number of tables in my database.

Now, I have been thinking about adding versioning to acts_as_audited (but not for the project I working on now).  It would basically be a polymorphic version of acts_as_versioned.  We'll see, versioning isn't something that I have a need for right now.

I'm open to any suggestions you may have.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Eric Anderson</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:556</id>
    <published>2006-08-01T10:13:32Z</published>
    <updated>2006-08-01T10:13:32Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Eric Anderson</title>
<content type="html">The plugin looks good but I am trying to understand why I would use this instead of the &quot;acts_as_versioned&quot; plugin? It seems that the &quot;acts_as_versioned&quot; plugin can provide the same information but in a more usuable form. With the acts_as_versioned plugin I can instantionate the object at the time it was versioned.

The only big advantages I see for this plugin over acts_as_versioned are:

* It should use less space since it is only recording what changed and not the entire record.
* Since the audit trail is stored in one table you could easily get a list of changes across all models in one query. With the acts_as_versioned plugin it seems that it would be more difficult to get all the changes made by user X in the last 5 days.

This comment is not meant to critisize. I am just trying to understand the proper time to use this and the proper time to use acts_as_versioned.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Matt Morton</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:555</id>
    <published>2006-07-26T08:12:32Z</published>
    <updated>2006-07-26T08:12:32Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Matt Morton</title>
<content type="html">Wow, way cool plugin.  Somehow Rails just keeps drawing me in. :)</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:554</id>
    <published>2006-07-21T10:18:16Z</published>
    <updated>2006-07-21T10:18:16Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Well, there shouldn't be anything that stops you from using the &lt;a href=&quot;http://rubyforge.org/projects/ar-versioned&quot;&gt;acts_as_versioned&lt;/a&gt; in combination with acts_as_audited.

But on that note, I'm toying with the idea of building in the ability to revert individual fields using the audit record.  I'd love to hear poeple's thoughts on that.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>bryanl</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:553</id>
    <published>2006-07-21T09:50:08Z</published>
    <updated>2006-07-21T09:50:08Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by bryanl</title>
<content type="html">So, can we version and audit a model?</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:552</id>
    <published>2006-07-21T09:22:24Z</published>
    <updated>2006-07-21T09:22:24Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Brandon</title>
<content type="html">Yeah, sorry, I should have explained that.

The plugin adds a polymorphic join from the audited models to the &lt;code&gt;Audit&lt;/code&gt; model, so you can retrieve all the audits for a model by calling:

&lt;pre&gt;
  User.find(:first).audits
&lt;/pre&gt;

If you have an instance of &lt;code&gt;Audit&lt;/code&gt;, you can also call &lt;code&gt;audit.auditable&lt;/code&gt; to get the model that the audit record is for.</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Navjeet</name>
    </author>
    <id>tag:opensoul.org,2006-07-21:550:551</id>
    <published>2006-07-21T08:50:48Z</published>
    <updated>2006-07-21T08:50:48Z</updated>
    <category term="work"/>
    <link href="http://opensoul.org/2006/7/21/acts_as_audited" rel="alternate" type="text/html"/>
    <title>Comment on 'acts_as_audited' by Navjeet</title>
<content type="html">In the audit table, what is the significance of auditable_id and auditable type? In example above does auditable_type User reflect the model being audited?</content>  </entry>
</feed>
