Resolving Issue #1586

This is a proposed resolution for https://github.com/balderdashy/sails/issues/1586
Merge pull request #1587 from devadattas/patch-1

Resolving Issue #1586