lib/active_object/array.rb in active_object-5.2.2 vs lib/active_object/array.rb in active_object-5.2.3
- old
+ new
@@ -69,13 +69,13 @@
def from(position)
self[position, length] || []
end
- def fulfill(value, number)
- amount = (number - 1)
+ def fulfill(value, amount)
return self if amount <= length
- fill(value, length..amount)
+
+ fill(value, length..(amount - 1))
end
def groups(number)
return [] if number <= 0