lib/surrogate/hatchery.rb in surrogate-0.3.0 vs lib/surrogate/hatchery.rb in surrogate-0.3.1

- old
+ new

@@ -47,14 +47,10 @@ add_helpers_for method_name, "will_have_#{method_name}" end def add_helpers_for(method_name, helper_name) klass.send :define_method, helper_name do |*args, &block| - if args.size == 1 - @hatchling.prepare_method method_name, args, &block - else - @hatchling.prepare_method_queue method_name, args, &block - end + @hatchling.prepare_method method_name, args, &block self end end end end