Extending ActiveRecord with stamping for created_by and updated_by fields
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README.rdoc
init.rb

README.rdoc

Userstamp

Automatically set created_by and updated_by fields.

Rails 2.3 compatible.

Usage

In a before filter do:

Thread.current['stamper_id'] = current_user.id