Posts tagged userstamp
Posts tagged userstamp
I was recently creating a new Rails application for work, and needed to track who was creating and updating certain objects. I remember seeing a post on the Rails Wiki a while ago entitled “Extending ActiveRecord Example”, so this is where I started when looking to implement my needed functionality. After reading that article I started thinking that instead of creating a library and including it into every model that needed this functionality, it would be neat if there was a plugin available that took care of this for you. After looking at the Plugins Wiki page, I was suprised to see that no one had yet created a plugin.
Using the ActiveRecord::Timestamp module as reference, I set out creating the plugin myself. After about thirty minutes of hacking around, I had a fully working plugin. I’ve been using this plugin in my application for the last few weeks and after seeing this post to the mailing list, I decided it might be good for me to release the plugin to the world. During the last couple of days, I’ve spent time adding a full battery of tests and RDoc comments to the code.
So, without further ado, I’m pleased to announce the Userstamp Plugin.