Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Auto version control for your activerecord objects

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 db
Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 uninstall.rb
README.markdown

ActiveLog

You need ActiveLog when you want to automagically create changelog of all activerecord changes in your rails app, asynchronously. It will keep track of all changes on attributes and as a bonus it can also record which user (session's current_user) made the change.

Example

add "records_active_log" to all models which needs to be logged


class User 
You can access logs either by user or all...
    >>u = User.first
    >>u.active_logs
    => [...]
    
    or
    
    >> ActiveLog.all

If you want to log along with information of currently logged in user then you should consider adding a before filter to application controller which sets ActiveLog.current = current_user

Copyright (c) 2010 Abhishek Parolkar, released under the MIT license

Something went wrong with that request. Please try again.