Update lib/ancestry/has_ancestry.rb

Use stabby lambda for named scope in order to be compatible with rails 4 and use ruby 1.9 syntax