use the :select option to find:
:select: By default, this is * as in SELECT * FROM, but can be changed if you for example want to do a join, but not include the joined columns
Mike
use the :select option to find:
:select: By default, this is * as in SELECT * FROM, but can be changed if you for example want to do a join, but not include the joined columns
Mike
Override the find method in your model class... untested but perhaps something like this:
def find(*args) without_data do super end end
def without_data(&block) with_scope(:find => { :select => ["name"] }, &block) end
WARNING! I've never implemented anything quite like that so I have no idea how close that code is to working but I think it's the right idea.
good luck!