Closed SebastianSzturo closed 7 years ago
Currently we need to write following code to get validation for a boolean value for a property:
property :title, accepts: String property :price, accepts: Integer property :new, accepts: [true, false]
By injecting a constant Boolean with the values [true, false] we can enable following syntax:
Boolean
[true, false]
property :title, accepts: String property :price, accepts: Integer property :new, accepts: Boolean
Currently we need to write following code to get validation for a boolean value for a property:
By injecting a constant
Boolean
with the values[true, false]
we can enable following syntax: