Strict mode for Boolean doesn't raise an error #219

Closed
Funfun opened this Issue Oct 24, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@Funfun

Funfun commented Oct 24, 2013

2.0.0p247 :001 > require 'virtus'
 => true
2.0.0p247 :002 > class User
2.0.0p247 :003?>     include Virtus.model(:strict => true)
2.0.0p247 :004?>
2.0.0p247 :005 >       attribute :admin, Boolean
2.0.0p247 :006?>   end
 => User
2.0.0p247 :009 >   User.new :admin => "can't really say if true or false"
 => #<User:0x007f95a38bb060 @admin="can't really say if true or false">

@ghost ghost assigned elskwid Oct 25, 2013

@elskwid

This comment has been minimized.

Show comment Hide comment
@elskwid

elskwid Oct 25, 2013

Collaborator

@Funfun, I have verified that this is an error but only for Boolean attributes. I have changed the name of the issue accordingly and will be working on a fix.

Thank you!

Collaborator

elskwid commented Oct 25, 2013

@Funfun, I have verified that this is an error but only for Boolean attributes. I have changed the name of the issue accordingly and will be working on a fix.

Thank you!

@solnic solnic closed this in d1d09ef Oct 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment