This project is archived and is in readonly mode.
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 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?
Comments and changes to this ticket
-
Rohit Arondekar July 21st, 2010 @ 02:01 AM
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.
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>