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.

Small construct_finder_sql refactor to support plugins

#1371

We don't have functionality like (for example) lazy-loading of BLOB and TEXT columns in core, nor excluding things like search vector pseudo-columns.

Rather than add this functionality to core, I'd like to make a very small refactor to construct_finder_sql that moves the ""/"my_table." default select strings out to a separate method, default_select, which can then be cleanly overriden in plugins without needing to copy in the entire construct_finder_sql method to the plugin.

Because it's such a small refactor, it's pretty safe. It changes only the defaults, all explicit select arguments & scopes still override it. Unless anyone can suggest a superior approach, could this please be considered for inclusion in 2.2?

Reported by Will Bryant · November 13th, 2008 @ 10:34 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [5140bbd0d3ae3d023d517c4da0ec1ac0f1528d00]) Moved the * strings out of construct_finder_sql to a new default_select method so it can be overridden by plugins cleanly

    Signed-off-by: Michael Koziarski michael@koziarski.com [#1371 Small construct_finder_sql refactor to support plugins state:resolved] http://github.com/rails/rails/co...

    November 15th, 2008 @ 05:27 PM

  2. Repository
    Repository

    (from [789a3f5b035fd293a9e235672a97b683a56ba0c3]) Moved the * strings out of construct_finder_sql to a new default_select method so it can be overridden by plugins cleanly

    Signed-off-by: Michael Koziarski michael@koziarski.com [#1371 Small construct_finder_sql refactor to support plugins state:resolved] http://github.com/rails/rails/co...

    November 15th, 2008 @ 05:27 PM