Joey Schoblaska
Not a member
Joey Schoblaska's latest activity
Saturday, August 01 2009
2957
Adding Array.uniq_by(proc) to core_ext, allowing selection of unique elements...
was updated
in Ruby on Rails
-
Joey Schoblaska commented at 12:27 AMIt seemed like overriding a Ruby method as common as [].uniq might cause confusion so I opted to create a new, explicitly-named method instead.
Wednesday, July 29 2009
2957
Adding Array.uniq_by(proc) to core_ext, allowing selection of unique elements...
was updated
in Ruby on Rails
-
Joey Schoblaska commented at 1:33 AMThanks for the suggestion. You're right - blocks result in much nicer-looking method calls than procs. I updated the patch to use blocks instead.
Tuesday, July 28 2009
2957
Adding Array.uniq_by(proc) to core_ext, allowing selection of unique elements...
was updated
in Ruby on Rails
-
Joey Schoblaska commented at 4:41 AMThanks! I can't think of any off the top of my head, but I'll definitely take a look.
Monday, July 27 2009
Download
uniq_by.diff(2 kb)
uniq_by.diff(2 kb)
2957
Adding Array.uniq_by(proc) to core_ext, allowing selection of unique elements...
was updated
in Ruby on Rails
-
Joey Schoblaska commented at 4:17 PMI can't download the original attachment, so trying another upload to see if that fixes it.
Saturday, July 25 2009
2957
Adding Array.uniq_by(proc) to core_ext, allowing selection of unique elements...
was created
in Ruby on Rails
-
Joey Schoblaska created the ticket at 11:46 PMOftentimes it's necessary to select some unique elements from an array based on various attributes. For instance, if you have an array of posts and you want to ...