hui
12/10/2008 - 3:31 AM

gistfile1.txt

http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001599

Supported options

:primary_key
Specify the method that returns the primary key used for the association. By default this is id.