Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
= 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.