github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rlivsey / dm-userstamp

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

DataMapper plugin to add automatic updating of created_by_id and updated_by_id attributes — Read more

  cancel

http://dm-userstamp.rubyforge.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' of git@github.com:rlivsey/dm-userstamp 
Richard Livsey (author)
Thu Oct 29 09:46:29 -0700 2009
commit  d34936cc82cb860064bdb589fbf090b639435303
tree    9ee29092e8e144cd9f1cc1e1da64201565dd6d1c
parent  07ee371f36eba56f9de6f94623d1e8505edf278b parent  e01eee51bbf65c8cc91a44b79b3406f5dfa645bf
dm-userstamp /
name age
history
message
file .gitignore Thu Oct 29 09:45:12 -0700 2009 update to using jeweler for gem packaging [Richard Livsey]
file History.txt Tue Aug 26 16:46:36 -0700 2008 package for hoe [Richard Livsey]
file LICENSE Tue Aug 26 14:28:11 -0700 2008 initial commit [Richard Livsey]
file README.txt Sun Sep 07 12:43:05 -0700 2008 update docs [Richard Livsey]
file Rakefile Thu Oct 29 09:45:12 -0700 2009 update to using jeweler for gem packaging [Richard Livsey]
file TODO Tue Aug 26 15:10:24 -0700 2008 updated TODO and added CHANGELOG [Richard Livsey]
file VERSION Thu Oct 29 09:45:45 -0700 2009 Version bump to 0.0.4 [Richard Livsey]
file dm-userstamp.gemspec Thu Oct 29 09:46:12 -0700 2009 update gemspec for v0.0.4 [Richard Livsey]
directory lib/ Fri Jun 12 03:40:59 -0700 2009 Let resources override userstamp class Signed-... [michaelklishin]
directory spec/ Thu Oct 29 09:46:29 -0700 2009 Merge branch 'master' of git@github.com:rlivsey... [Richard Livsey]
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server