public
Description: DataMapper plugin to add automatic updating of created_by_id and updated_by_id attributes
Homepage: http://dm-userstamp.rubyforge.org/
Clone URL: git://github.com/rlivsey/dm-userstamp.git
rlivsey (author)
Thu Oct 29 09:46:12 -0700 2009
commit  07ee371f36eba56f9de6f94623d1e8505edf278b
tree    6aa516d225f775351a8c84015c72d786b1a7dba6
parent  09660fde76f630bdcb80fc8399c7486bc2c5ac54
README.txt
= dm-userstamp

DataMapper plugin which adds "magic" to created_by_id, updated_by_id fields

Assumes a model called User and a class attribute of current_user
Just need to add created_by_id and/or updated_by_id Integer fields to the model

Eg:

class User
  include DataMapper::Resource
  include DataMapper::Userstamp::Stamper
  
  cattr_accessor :current_user
  ...
end

class Monkey
  include DataMapper::Resource
  
  property :created_by_id, Integer
  property :updated_by_id, Integer      
  ...
end

== Docs

See rubyforge project:
 * http://dm-userstamp.rubyforge.org/

== Install

sudo gem install dm-userstamp

== Thanks

Code based on:
 * AR userstamp plugin - http://github.com/ctran/userstamp/tree/master
 * DM timestamps plugin - http://github.com/sam/dm-more/tree/master/dm-timestamps