Open ktimothy opened 7 years ago
Yeah, looks like FalseClass isn't listed as a primitive for it: https://github.com/solnic/virtus/blob/master/lib/virtus/attribute/boolean.rb#L18
It also looks like only one primitive type can be set.
(Oh, Ruby, TrueClass and FalseClass, seriously? =))
Ruby has no primitive types.
I meant primitive
attribute of Virtus::Attribute
class.
@envygeeks Virtus::Attribute
has a primitive
accessor: https://github.com/solnic/virtus/blob/master/lib/virtus/attribute.rb#L51
Found it out while investigating a bug in grape.