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
  stampable
  record_activities #same as record_activities  :create, :update
end
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:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s