search for: lastlogin_before_type_cast

Displaying 1 result from an estimated 1 matches for "lastlogin_before_type_cast".

2006 Mar 14
4
ruby-postgres: can''t convert string to integer
...reatly appreciated. As I haven''t had too much luck with postgres-pr as well, I''m now somewhat out of options.. BTW, the problem I ran into when using postgres-pr was timestamps (with or without timezones) being casted to nil. For example object.lastlogin being nil, but object.lastlogin_before_type_cast containing the expected data. I tried at first to work around this by adding this to my model: def after_find self[:lastlogin] = self.lastlogin_before_type_cast end which seemed to work; unfortunately, when saving modified objects back all timestamp fields where set to nil. So again, t...