public
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobo.git
group_by now passes along metadata
bluescreen303 (author)
Thu Jul 24 17:52:42 -0700 2008
tablatom (committer)
Fri Jul 25 08:42:44 -0700 2008
commit  2c391e3cfefa95b464866fe1467d68ded8be2dca
tree    594da9aaabd771e6779bdfa65c5ef7dc58a396a5
parent  788fc710eaa66ff233a456187c1c2f6c87c2e279
...
473
474
475
 
 
 
 
 
 
 
 
 
 
 
476
...
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
0
@@ -473,4 +473,15 @@ class ::Array
0
 end
0
 
0
 
0
+module ::Enumerable
0
+ def group_by_with_metadata(&block)
0
+ group_by_without_metadata(&block).each do |k,v|
0
+ v.origin = origin
0
+ v.origin_attribute = origin_attribute
0
+ v.member_class = member_class
0
+ end
0
+ end
0
+ alias_method_chain :group_by, :metadata
0
+end
0
+
0
 Hobo.enable if defined?(Rails)

Comments

    No one has commented yet.