lib/more/facets/dictionary.rb in facets-2.0.4 vs lib/more/facets/dictionary.rb in facets-2.0.5
- old
+ new
@@ -142,10 +142,10 @@
if blk
dict = self # This ensure autmatic key entry effect the
oblk = lambda{ |hsh, key| blk[dict,key] } # dictionary rather then just the interal hash.
@hash = Hash.new(*args, &oblk)
else
- @hash = Hash.new
+ @hash = Hash.new(*args)
end
end
def order
reorder if @order_by