Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 94990
BY: Rasmus Bergholdt (rbhander)
DATE: 2010-10-07 11:31
SUBJECT: Fix honoring :primary_key option when joining

 

When using belongs_to with :primary_key option ibm_db_pstmt.rb uses the primary key defined on the ActiveRecord class.

I have tried changing the code according to this fix, and it works.
http://github.com/rails/rails/commit/63026541b209cc11ffd74cf3ca04b89d1e437737

Regards
Rasmus


Thread View

Thread Author Date
Fix honoring :primary_key option when joiningRasmus Bergholdt2010-10-07 11:31
      RE: Fix honoring :primary_key option when joiningPraveen Devarao2010-10-07 12:11

Post a followup to this message