GithubHelp home page GithubHelp logo

fuzziness / ar_simple_ownership Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 108 KB

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

Ruby 100.00%

ar_simple_ownership's Introduction

== 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.