Permalink
Browse files

Reverse settings record.id to nil in insert method

  • Loading branch information...
1 parent b73d7a7 commit 004da7c9da51f373e6ae113b5f6eb72da09e4cd8 @lawrencepit lawrencepit committed Jun 17, 2008
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/model_stubbing/stub.rb
@@ -51,7 +51,6 @@ def inspect
def insert(attributes = {})
object = record(attributes)
- object.id = nil
object.new_record = true
object.save!
end

0 comments on commit 004da7c

Please sign in to comment.