Creating has_many relationships in ActiveRecord without :primary_key

Posted by kmorris511 on Stack Overflow See other posts from Stack Overflow or by kmorris511
Published on 2010-03-31T21:18:06Z Indexed on 2010/03/31 22:13 UTC
Read the original article Hit count: 146

Filed under:
|

I'm working with an older version of Rails and ActiveRecord that does not have the :primary_key option in has_many relationships of more recent ActiveRecord versions and unfortunately I don't get to control when we upgrade. Is there any way to hack this solution via :conditions or :finder_sql options?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about activerecord