lib/temping.rb in temping-3.7.0 vs lib/temping.rb in temping-3.7.1
- old
+ new
@@ -48,10 +48,10 @@
def build
Class.new(model_parent_class).tap do |klass|
Object.const_set(@model_name, klass)
- klass.primary_key = :id
+ klass.primary_key = @options[:primary_key] || :id
create_table(@options)
add_methods
end
end