Commit 1dcdf362 by Sergey Alekseev Committed by John Hawthorn

fix deprecation warning for .find with object

DEPRECATION WARNING: You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`. (called from block in restore at /Users/sergey/ruby_projects/paranoia/lib/paranoia.rb:38)
parent b6957f9f
......@@ -549,7 +549,7 @@ class ParanoiaTest < test_framework
hasOnes.each(&:destroy)
ParanoidModelWithHasOne.restore(hasOnes[1], :recursive => true)
ParanoidModelWithHasOne.restore(hasOnes[1].id, :recursive => true)
hasOnes.each(&:reload)
belongsTos.each(&:reload)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment