public
Description: Sets a pseudo primary key for the model.
Clone URL: git://github.com/josh/pseudo_primary_key.git
Search Repo:
name age message
folder MIT-LICENSE Wed Nov 14 17:35:49 -0800 2007 Initial import [josh]
folder README Wed Nov 14 17:35:49 -0800 2007 Initial import [josh]
folder init.rb Wed Nov 14 17:35:49 -0800 2007 Initial import [josh]
folder lib/ Wed Nov 14 17:35:49 -0800 2007 Initial import [josh]
folder test/ Sat Mar 01 20:31:53 -0800 2008 Cleaned up test case. [josh]
README
PseudoPrimaryKey
================

Sets a pseudo primary key for the model.

Example
=======

  class Tag < ActiveRecord::Base
    set_pseudo_primary_key "name"
  end


Copyright (c) 2007 Joshua Peek, released under the MIT license