Altering vhochstein's config.list.columns select query

113 views
Skip to first unread message

duker_48

unread,
Jun 16, 2011, 3:33:27 PM6/16/11
to ActiveScaffold : Ruby on Rails plugin
On my list page, I am only displaying a few fields, and the table has
30+. How can I change the query from

select table.*
to
select table.[fields I am displaying]?

It seems to be pretty inefficient to return the entire table, when I
am only displaying a few fields.

Thanks!

vhochstein

unread,
Jun 17, 2011, 6:23:14 AM6/17/11
to ActiveScaffold : Ruby on Rails plugin
Hi,

I would suggest to override:
# Override this method on your controller to provide custom finder
options to the find() call. The return of this method should be a
hash.
def custom_finder_options
{:select => ....}
end

--
Volker
Reply all
Reply to author
Forward
0 new messages