devmynd/hstore_accessor — pull request #9 by rhec (2013-12-19 03:12:58+00:00)
Title: type cast values as they are set

This aligns hstore_accessor managed attributes more closely with regular attributes and solves problems I was having using hstore_accessor with forms. For one, without typecasting, setting boolean attributes from a params hash doesn't work, because the params hash will map booleans to "0" or "1", both of which will serialize as false. This patch doesn't include multiparameter typecasting e.g. date(1i) date(2i), date(3i), but I'll look into it.