Userstamp

The Userstamp Plugin extends ActiveRecord::Base to add automatic updating of created_by and updated_by attributes of your models in much the same way that the ActiveRecord::Timestamp module updates created_(at/on) and updated_(at/on) attributes.

The module requires that your application’s user object (User by default) contains an accessor called current_user be set with an instance of the currently logged in user (typically using a before_filter. This module can also be turned off on a case by case basis by setting the record_userstamps attribute of your ActiveRecord object to false.

Tags

Currently tagged with: activerecord
You need to Login to tag this item.