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.

This project is archived and is in readonly mode.

Add :from option to Calculations module

#397

This patch adds the same :from option that AR::Base has to the Calculations module.

The :from option allows you to override the table name in the query (or to force MySQL to use a specified index, which is what we use it for).

Reported by Ben Munat · June 12th, 2008 @ 12:43 AM

State: resolved
Milestone: 2.1.1
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 2.1.1
    • State changed from new to open
    • Assigned user set to Jeremy Kemper

    June 12th, 2008 @ 02:05 AM

  2. Repository
    Repository
    • State changed from open to resolved

    (from [67e8ec0e07314d367b1dc19ed3a1edf05105f8ce]) Add :from option to calculations. [#397 state:resolved]

    http://github.com/rails/rails/co...

    June 12th, 2008 @ 02:11 AM

  3. Repository
    Repository

    (from [ddab9d7fdf49eb064f3f669bbf6ebb41e75e9fb5]) Add :from option to calculations. [#397 state:resolved]

    http://github.com/rails/rails/co...

    June 12th, 2008 @ 02:11 AM

  4. John Wulff
    John Wulff
    • Tag set to activerecord, patch, tested

    Really glad this made it in. Thanks everyone.

    October 15th, 2008 @ 12:46 AM