record_activities Rails Plugin for Activity Logging in 16LOC

Since most activity logging solutions out there are either complex or require controller hacking i based this new dead-simple activity logging plugin on userstamps.

Thats 16LOC for complete activity logging

Record Activities Rails plugin

class Comment < ActiveRecord::Base
  record_activities #same as record_activities  :create, :update
Comment.create! -> Activity(:subject=>comment,:actor=>current_user,:action=>'create')

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s