smart_properties icon indicating copy to clipboard operation
smart_properties copied to clipboard

Allows non-array values for `accept:`

Open amomchilov opened this issue 4 years ago • 0 comments

It looks like previously, any kind of Enumerable was allowed as an argument to accepts:, but it has since been constrained so that any non-Proc values are transformed into an Array:

https://github.com/t6d/smart_properties/commit/66fba250634fba3605cb9134f2e2f5a5c6d97210

Is there a reason why Array is enforced, in particular?

amomchilov avatar Mar 22 '21 20:03 amomchilov