fuzziness / ar_simple_ownership

The ArSimpleOwnership Plugin extends ActiveRecord::Base to add automatic updating of an ownership attribute of your models in much the same way that the ActiveRecord::Timestamp module updates created(at/on) and updated(at/on) attributes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

== ArSimpleOwnership (v 0.2.0)

The ArSimpleOwnership Plugin extends ActiveRecord::Base to add automatic updating
of an ownership attribute of your models in much the same way that the 
ActiveRecord::Timestamp module updates created(at/on) and updated(at/on) attributes.

Needs Rails 2.1.1


=== Install

Installing the plugin can be done using the built in Rails plugin script. 
Issue the following command from the root of your application:

  script/plugin install ar_simple_ownership


=== Uninstall

  script/plugin remove ar_simple_ownership


=== Example

@TODO


=== Bugs & Feedback

If you would like to report a bug or request a new feature the bug tracker is 
located at:

   http://works.fuzziland.it

I also encouraged everyone to clone the git repository and make modifications.
I'll be more than happy to merge any changes from other people's branches that 
would be beneficial to the whole project.


=== Todo

* Every find call adds automatically owner scope
* Store classes with full path
* Customizable owner id column
* Support for Composite Primary Keys


=== Credits and Special Thanks

The original idea for this plugin came from Delynn Berry's 
{userstamp plugin}[http://delynnberry.com/projects/userstamp/]. 


Copyright (c) 2008 Michele Franzin, released under the MIT license.

About

The ArSimpleOwnership Plugin extends ActiveRecord::Base to add automatic updating of an ownership attribute of your models in much the same way that the ActiveRecord::Timestamp module updates created(at/on) and updated(at/on) attributes.

License:MIT License


Languages

Language:Ruby 100.0%