Currently spouses method is just checking if there is any children with the spouse or not. In case no children then its omitting the spouse.
Say for eg.
User has added current spouse but has no children yet. When he checks spouses method it returns no result. If user checks using current_spouse method then it shows a result.
I believe we should consider current_spouse as well for spouses.
Currently
spouses
method is just checking if there is any children with the spouse or not. In case no children then its omitting the spouse.Say for eg. User has added current spouse but has no children yet. When he checks spouses method it returns no result. If user checks using
current_spouse
method then it shows a result.I believe we should consider
current_spouse
as well for spouses.Ref: https://github.com/masciugo/genealogy/blob/master/lib/genealogy/query_methods.rb#L63