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.

Artūras Šlajus's latest activity

Tuesday, November 03 2009
3455 AR belongs_to :include option doesn't do anything was created in Ruby on Rails
  • Artūras Šlajus
    Artūras Šlajus created the ticket at 10:50 AM

    It seems that eager loading of AR for belongs_to associations is broken.

    With the new strategy for has_many associations, belongs_to doesn't left join relevant ...

Friday, December 19 2008
1595 Patch for ActiveSupport that Array#uniq and #uniq! supports blocks was updated in Ruby on Rails
  • Artūras Šlajus
    Artūras Šlajus commented at 11:06 PM

    And why does other stuff in activesupport belong in core? Not that I like being itchy but this patch doesn't hurt and perhaps it will be useful for someone?

    Wha...

  • Artūras Šlajus
    Artūras Šlajus commented at 11:51 AM

    But doing so destroys original values.

    For example my patch is very useful for tagging support where we want to keep original values.

    
    >> a = ["Drum and bass"...
Thursday, December 18 2008
1595 Patch for ActiveSupport that Array#uniq and #uniq! supports blocks was created in Ruby on Rails
  • Artūras Šlajus
    Artūras Šlajus created the ticket at 2:17 PM

    I found it useful when i wanted to ensure that array has no duplicate values while somehow transforming them, but not affecting original array so I wrote a patc...