Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Pseudo Primary Key

Pseudo Primary Key

Sets a pseudo primary key for the model.

Example

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

Copyright© 2007 Joshua Peek, released under the MIT license


Homepage: http://plugins.wh.joshpeek.com/browser/pseudo_primary_key

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

Josh Peek