0.0
No commit activity in last 3 years
No release in over 3 years
DataMapper plugin to add automatic updating of created_by_id and updated_by_id attributes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme
= 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