On Wednesday, October 21, 2015 at 10:18:17 PM UTC-7, Pietro wrote:
>
> Sorry, I meant to ask if there is any other way besides using 
> schema_caching. The thing is that some of my models are bundled in a gem 
> and shared between multiple applications, so keeping a schema dump inside 
> the gem just to run tests doesn't feel right.
>
> I just tried to use def_column_accessor and everything seems to work fine, 
> what is the problem with type casting?
>

Sequel uses the type information from the schema, so that if you do 
model_obj.int_column = '1', it will convert the value to an integer.  If 
you define the column accessor but don't have any schema information, it 
won't do type casting.

Thanks,
Jeremy 

-- 
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.

Reply via email to