balderdashy/sails-disk — pull request #12 by stevesims (2013-12-23 08:39:29+00:00)
Title: Ensure unique attribute checking works for naive models.

When attempting to use the associations branch and following the steps taken in the example video, i.e. creating a new app, adding a user model/api, creating a few new users from the browser, and then attempting to update a user record to add in an email address to a user, the update would crash, and the update would be ignored.

This pull request modifies the previous 'unique' flag checking slightly. It checks to see if there's an attribute definition first before checking to see whether it's has the unique flag set. This fixes the bug.