t6d / smart_properties

Ruby accessors on steroids
MIT License
177 stars 20 forks source link

Allows non-array values for `accept:` #74

Open amomchilov opened 3 years ago

amomchilov commented 3 years ago

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?