drnic/composite_primary_keys — pull request #90 by fmmfonseca (2012-03-12 22:37:36+00:00)
Title: fix method signature mismatch with active_record

I was trying to set up a has_and_belongs_to_many association and kept receiving the following exception:

ArgumentError: wrong number of arguments (3 for 2)
from /Library/Ruby/Gems/1.8/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:435:in `insert_record'

Upon inspection I noticed the offending line in active_record is trying to call the following method:

insert_record(record, true, raise)

However, the corresponding method in composite_primary_keys has an incompatible signature:

def insert_record(record, validate = true)

Should be fixed now.