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.

James Harton's latest activity

Monday, June 21 2010
4917 Bug with passing an Arel::Relation into an ActiveResource predicate. was updated in Ruby on Rails
  • James Harton
    James Harton commented at 3:24 AM

    Patch.

  • James Harton
    James Harton created the ticket at 3:19 AM

    Suppose you have a fairly complex query that you have built using Arel, and now you want to pass it into a where predicate to get your AR models back (here is a...

Sunday, June 20 2010
4882 ActiveRelation bug; size() returning incorrect value with limit(). was updated in Ruby on Rails
  • James Harton
    James Harton commented at 9:43 PM

    Ahh right! I understand. You don't think this is a little counter-intuitive?

Thursday, June 17 2010
4882 ActiveRelation bug; size() returning incorrect value with limit(). was created in Ruby on Rails
  • James Harton
    James Harton created the ticket at 1:34 AM

    Easiest to explain with a snippet:

    Loading development environment (Rails 3.0.0.beta4)
    ruby-1.8.7-p249 > Post.limit(20).size
     => 1000 
    ruby-1.8.7-p249 > Post.l...