Forum: Ruby on Rails Help with acts_as_audited

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7d9b52b827844af1dde7dc3639a83243?d=identicon&s=25 Diego Bernardes (di3go)
on 2009-02-22 21:10
Hi everyone,


Im using the plugin acts_as_audited to audit my whole program, but i
have a problem, when the change is in a association table (has and
belongs to many)  the change isnt captured by the plugin, anyone know
any fast hot fix to this?

Thanks!
3203ed0e608d3bfae1e31282e629ffa2?d=identicon&s=25 Peter Fitzgibbons (Guest)
on 2009-04-08 14:58
(Received via mailing list)
Sounds like you may need to create a model over the associationlike
cats_dogs.rb:

class CatDog < ActiveRecord::Base
...
end

You'll probably need to extend your habtm table with an auto-increment
surrogate key so that acts_as_audited can play well with the "primary
key"

Peter Fitzgibbons
(847) 687-7646
Email: peter.fitzgibbons@gmail.com
IM GTalk: peter.fitzgibbons
IM Yahoo: pjfitzgibbons
IM MSN: pjfitzgibbons@hotmail.com
IM AOL: peter.fitzgibbons@gmail.com


On Sun, Feb 22, 2009 at 3:10 PM, Diego Bernardes <
This topic is locked and can not be replied to.