jpignata/temping

New instances not populated with ID

swalke16 opened this issue · 1 comments

From your example:

Temping.create :dog

Dog.create => #<Dog id: 1>

First, your documentation is out of date with your code. You have to

include Temping
create_model :dog

Next, attempting to use this in a rails 3.2.8 project and the created dog instance does not have an ID after the call to create.

Indeed - sorry I didn't see this earlier.

Should be fixed in 3.1.0.