views:

7

answers:

0

I've been upgrading Rails2 app to Rails3, running specs and got this error:

CommentsController destroy action renders back :success => true if comment is deleted
Failure/Error: comment = Factory.create(:comment, :commentable => @question)
undefined method `update_counters_without_lock' for #<Class:0x7f178ffe5850>

I checked Rails3 API and it seems that the method is present: http://www.daokaous.com/rails3.0.0_doc/classes/ActiveRecord/Locking/Optimistic/ClassMethods.html#M001943

Anyone knows how to fix it?