mceachen/closure_tree — pull request #52 by garygreyling (2013-04-04 13:42:57+00:00)
Title: prevent faulty SQL statement when #siblings is called on an unsaved records

Allow #siblings to be called on unsaved models. This becomes relevant when #siblings is used in custom validations (which will run before the model has an ID). This PR fixes the faulty SQL that is constructed by #siblings when the model hasn't yet received an ID.