joelmoss/bitmask_attributes — pull request #38 by teeparham (2013-01-10 20:08:53+00:00)
Title: do not overwrite saved bitmask value to default - fixes #35

Current behavior: if a bitmask has a default defined, you can save an empty bitmask, but you cannot load an object with that empty value. Thus the model does not match the database.

This commit fixes this by not setting the default value if the model is persisted (previously saved).

cc @braddunbar