This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Oct 17 08:37:38 -0700 2008 | |
| |
MIT-LICENSE | Fri Oct 17 08:37:38 -0700 2008 | |
| |
README | Thu Apr 30 05:02:16 -0700 2009 | |
| |
Rakefile | Fri Oct 17 08:37:38 -0700 2008 | |
| |
init.rb | Fri Oct 17 08:37:38 -0700 2008 | |
| |
install.rb | Fri Oct 17 08:37:38 -0700 2008 | |
| |
lib/ | Wed Mar 11 11:03:54 -0700 2009 | |
| |
spec/ | Wed Mar 11 11:03:54 -0700 2009 |
README
= UserStamp
Rails plugin that makes stamping records with a user when they are
created and updated dirt simple. It assumes that your controller has
a current_user method. It also assumes that any record being stamped
has two attributes--creator_id and updater_id. You can override both
of these assumptions easily.
== Setup
1. script/plugin install git://github.com/jnunemaker/user_stamp.git
2. Add user_stamp to application.rb, like the following:
class ApplicationController < ActionController::Base
user_stamp Post, Asset, Job
end
== Defaults
UserStamp.creator_attribute = :creator_id
UserStamp.updater_attribute = :updater_id
UserStamp.current_user_method = :current_user
If your user stamped columns and current_user method are different,
just create an initializer such as config/initializers/user_stamp.rb
and copy and paste the defaults above, changing them to fit your app.
== Problems?
Use the issue tracker on Github.
== Docs
http://rdoc.info/projects/jnunemaker/user_stamp
Copyright (c) 2008 [John Nunemaker], released under the MIT license








