fix renaming errors that leave blank keys
Ticket
+status
+priority
+tag
+commit
+issues
If you rename a simple card (eg Fish) that acts as the right part of plus card (eg Ethan McCutchen+Fish), then in the process the plus card will end up with a temporary key (formerly a blank key), which breaks the card.
+solution
- We should fixing the kludge in tracked_attributes#set_name: √- we made it use UUID
- we should figure out why the renaming in question is causing the problem.
- we should make it impossible for a blank key to get created in the first place (validations). we may also revisit the merit of the temporary key design.
+example
See http://sandbox.wagn.org/wagn/new_name_same_key_bug
I renamed "image" to "Image" on wagn.org, and that broke all the cards ending in +image -- they all were left with universal keys. (It was a nuisance to fix.) Same thing with other lower-case card types that I renamed.