I'm not sure if this is a bug, or not, or if there may be some
configuration I can do to avoid this. I'm running into an issue with the
auto_validations for :type failing when the name of a column conflicts with
other attributes of the model.
For instance, if I have a table with a column named 'class' and data type
if 'int,' when the auto_validations run the model will be marked invalid
with the following error hash:
{
:class => [
[0] "is not a valid integer"
]
}
I think this may be due to the validation_helper performing a 'send' and
passing 'class' which results in the object returning its class and not the
value stored in the 'class' field.
Does anyone have any tips?
Thanks in advance!
-Patrick
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.