> 1) We could use the db_schema to see if the column is a boolean and
> consider false as present just for booleans
> 2) We could add validates_inclusion_of:
> validates_inclusion_of :hidden, :in=>[true, false]
> 3) We could add validates_boolean: validates_boolean :hidden
> 4) We could modify save to return nil and always consider false as
> present, and special case save_changes
>
> I'm open to other ideas and/or a patch in this area.  I don't think
> option 1) is a good idea, as the db_schema isn't always available.  I
> think 4) may be the best bet in the long run.

I think so too.
validates_inclusion_of will still be good to add regardless of how we
deal with this issue.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to