From 62207b4c509cf7b19270b4078dd17b267c5ec3c0 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Fri, 16 Mar 2012 12:15:11 -0400 Subject: [PATCH] Provide sane default in model builder. --- spec/support/model_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/model_builder.rb b/spec/support/model_builder.rb index f0bbeaa1..91c61630 100644 --- a/spec/support/model_builder.rb +++ b/spec/support/model_builder.rb @@ -28,7 +28,7 @@ module ModelBuilder 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|