This project is archived and is in readonly mode.

#5159 ✓resolved
Ryan Bigg

undefined method insert_record for Array

Reported by Ryan Bigg | July 20th, 2010 @ 01:21 PM | in 3.x

I'm using Ruby 1.9.2 trunk 28656 and when I run bundle exec rspec spec/models/ticket_spec.rb for I get this stack trace:

I tried running the ActiveRecord tests to see if this broke with them too but it raises a segfault and hangs, which I think is more of a Bundler bug. Nevertheless, the stacktrace for that is here:

What is strange however is that these specs both work on an older version of Ruby 1.9.2, trunk 28448.

I have tried to debug this with little success tonight. My only suspicion is that something has changed between these revisions of 1.9.2 with regards to the code's ability to send to protected methods (of which insert_record is one).

So yeah. Dunno. Stuck. Help?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>