lib/rbbt/association/item.rb in rbbt-util-5.34.17 vs lib/rbbt/association/item.rb in rbbt-util-5.34.18

- old
+ new

@@ -134,10 +134,11 @@ end tsv end property :filter => :array do |*args,&block| - keys = tsv.with_unnamed do tsv.select(*args,&block).keys end + block = args.pop if Proc === args.last + keys = tsv.with_unnamed do tsv.select(*args, &block).keys end keys = self.annotate keys keys end def self.incidence(pairs, key_field = nil, &block)