Permalink
Browse files

small tweak so that calling define_method with only a hash inherits f…

…rom the existing stubs properly
  • Loading branch information...
1 parent f809745 commit 3382c02f63926cb367371b221478ef6dda3492f3 @technoweenie committed Jul 31, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/model_stubbing.rb
View
@@ -50,7 +50,7 @@ def define_models(base_name = :default, options = {}, &block)
# if options are given first, assume that base_name is default
when Hash
options = base_name
- base_name = nil
+ base_name = self
when nil
else
unless options[:copy] || block.nil?

0 comments on commit 3382c02

Please sign in to comment.