Closed tchukuchuk closed 13 years ago
Can you provide some more info? This workaround was to return empty array for models that haven't @new_record variable. Your patch breaks this behavior and if @new_record is nil (i.e. model not fully initialized yet) plugin will try to find it's descendants.
here is my issue : https://gist.github.com/740709
Thanks a lot. I'll check this and find solution.
I've fixed descendants method which doesn't work for me if self.instance_variable_get(:@new_record) returns nil and not false.