Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Provide sane default in model builder.

  • Loading branch information...
commit 62207b4c509cf7b19270b4078dd17b267c5ec3c0 1 parent bb59b74
@gabebw gabebw authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/support/model_builder.rb
View
2  spec/support/model_builder.rb
@@ -28,7 +28,7 @@ def create_table(table_name, options = {}, &block)
end
end
- def define_constant(class_name, base, &block)
+ def define_constant(class_name, base = Object, &block)
class_name = class_name.to_s.camelize
Class.new(base).tap do |constant_class|
Please sign in to comment.
Something went wrong with that request. Please try again.