lib/temping.rb in temping-3.0.2 vs lib/temping.rb in temping-3.1.0
- old
+ new
@@ -27,9 +27,10 @@
def build
Class.new(ActiveRecord::Base).tap do |klass|
Object.const_set(@model_name, klass)
+ klass.primary_key = :id
create_table
add_methods
end
end