lib/test_dummy.rb in test_dummy-0.2.3 vs lib/test_dummy.rb in test_dummy-0.2.4
- old
+ new
@@ -227,10 +227,10 @@
end
end
def dummy_method_call(model, with_attributes, block)
case (block.arity)
- when 2, -1
+ when 2
block.call(model, with_attributes)
when 1
block.call(model)
else
model.instance_eval(&block)