Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    Joey Schoblaska commented at 12:27 AM

    It 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
    Joey Schoblaska commented at 1:33 AM

    Thanks 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
    Joey Schoblaska commented at 4:41 AM

    Thanks! I can't think of any off the top of my head, but I'll definitely take a look.

Monday, July 27 2009
uniq_by.diff was uploaded by Joey Schoblaska at 4:18 PM to #2957, Ruby on Rails
2957 Adding Array.uniq_by(proc) to core_ext, allowing selection of unique elements... was updated in Ruby on Rails
  • Joey Schoblaska
    Joey Schoblaska commented at 4:17 PM

    I 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
    Joey Schoblaska created the ticket at 11:46 PM

    Oftentimes 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 ...