Auto version control for your activerecord objects
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/models
db/migrate Shree Ganeshaya Namah: Jul 12, 2010
lib
tasks
test
MIT-LICENSE
README.markdown
Rakefile
init.rb Shree Ganeshaya Namah: Jul 12, 2010
uninstall.rb Shree Ganeshaya Namah: Jul 12, 2010

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 < ActiveRecord::Base

  records_active_log

end

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