Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

undefined method insert_record for Array

#5159

I'm using Ruby 1.9.2 trunk 28656 and when I run bundle exec rspec spec/models/ticket_spec.rb for http://github.com/radar/insert_record_bug I get this stack trace: http://gist.github.com/482825.

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: http://gist.github.com/482884.

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?

Reported by Ryan Bigg · July 20th, 2010 @ 01:21 PM

State: resolved
Milestone: 3.x
Assigned to: nobody
Importance: Low

Activity

  1. Rohit Arondekar
    Rohit Arondekar

    Things might break in 1.9.2-head from time to time. I think the general consensus is that if it works in 1.9.2-RC1 then it's good.

    July 21st, 2010 @ 02:01 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to resolved

    This works for me now.

    July 26th, 2010 @ 03:19 AM