spree/spree — Issue #1193: Preferences should be converted to string before stored in db
Author: five18pm
Created: 2012-02-25 06:28:26+00:00
State: open

Preference value field is of text type in database. When a preference value is directly assigned, the database driver serializes the value before storing in the db. The values that are serialized for `true` or `false` boolean values are `1` and `0` for boolean values.

Fix is to convert the value to string before assigning to db.

See:
http://groups.google.com/group/spree-user/browse_thread/thread/89a6346485eb2005/6e960c7d5a4bddd5#6e960c7d5a4bddd5