This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat May 23 14:51:08 -0700 2009 | |
| |
CHANGELOG | Tue Jun 02 14:04:55 -0700 2009 | |
| |
LICENSE | Mon Feb 23 05:58:59 -0800 2009 | |
| |
README | Tue Jun 02 14:16:03 -0700 2009 | |
| |
Rakefile | Sat May 23 19:12:43 -0700 2009 | |
| |
generators/ | Sun Jun 17 11:02:18 -0700 2007 | |
| |
init.rb | Sat May 17 21:56:58 -0700 2008 | |
| |
lib/ | Tue Jun 02 14:04:55 -0700 2009 | |
| |
tasks/ | Thu Jul 20 09:41:01 -0700 2006 | |
| |
test.txt | Fri Mar 21 11:58:26 -0700 2008 | |
| |
test/ | Tue Jun 02 14:12:25 -0700 2009 |
README
= acts_as_audited
acts_as_audited is an ActiveRecord extension that logs all changes to your models in an audits table.
This fork addresses an issue that arises when a plugin (such as restful_authentication) provides the _current_user_
method to the application controller, causing the audit sweeper to fail to retrieve the current user.
The solution is to explicitly provide a wrapper method for whatever implementation of current_user you have, as shown in
the usage instructions below.
== Installation
* Install the plugin into your rails app
If you are using Rails 2.1+:
script/plugin install git://github.com/Bantik/acts_as_audited.git
* Generate the migration
script/generate audited_migration add_audits_table
rake db:migrate
== Usage
Usage instructions from the master branch apply; the only difference is that if you are using the restful_authentication
plugin, you need to add the following method to your application controller:
def current_user_for_audit
@current_user || current_user
end
See http://github.com/collectiveidea/acts_as_audited/ for full details on the plugin.







