lib/granite/form/model/attributes/base.rb in granite-form-0.2.0 vs lib/granite/form/model/attributes/base.rb in granite-form-0.3.0

- old
+ new

@@ -102,10 +102,10 @@ def evaluate(*args, &block) if block.arity >= 0 && block.arity <= args.length owner.instance_exec(*args.first(block.arity), &block) else - args = block.arity < 0 ? args : args.first(block.arity) + args = block.arity.negative? ? args : args.first(block.arity) yield(*args, owner) end end def remove_variable(*names)