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.

attribute_condition in Rails 2.3.1 [PATCH]

#17

attribute_condition in rails 2.3.1 now takes the name of the table and column in addition to the value.

Patch is attached.

Reported by Stephen Heuer · March 5th, 2009 @ 09:08 AM

State: new
Milestone: none
Assigned to: Zach Dennis Zach Dennis

Activity

  1. Stephen Heuer
    Stephen Heuer
    • Title changed from attribute_condition in Rails 2.3.1 to attribute_condition in Rails 2.3.1 [PATCH]

    March 6th, 2009 @ 11:41 AM

  2. Zach Dennis
    Zach Dennis

    Thanks Stephen, do you know if the patch is backwards compatible with Rails 2.1.2 and Rails 2.2.2?

    March 6th, 2009 @ 12:07 PM

  3. Stephen Heuer
    Stephen Heuer

    Tested and works on 2.3.1, 2.3.0, and 2.2.2.

    Here is the rails changeset (it happened between the release of 2.3.0 and 2.3.1):
    http://github.com/rails/rails/commit/9991868d85b25da672bf119bfcbff2...

    March 6th, 2009 @ 12:40 PM

  4. Zach Dennis
    Zach Dennis

    Thanks Stephen. The patch looks simple enough yet it breaks half the tests. I don't have time to look at right now, but I will put it on my docket for later this week.

    March 9th, 2009 @ 09:23 PM

  5. Zach Dennis
    Zach Dennis
    • State changed from new to resolved

    This is fixed in commit: http://github.com/zdennis/ar-ext...

    The fix will be pushed in ar-extensions 0.8.2 gem release which should be available on a rubygem mirror near you.

    March 16th, 2009 @ 09:54 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.