Hey Chris,

You might wanna try

Person.all(:fields => [:id, :name])

cheers
snusnu

On Tue, Jun 8, 2010 at 19:38, Chris Gunnels <[email protected]> wrote:
> I have been looking all over the web, but can't seem to figure out how
> to define the properties i want. What i mean is that I don't want
> datamapper to select all properties, I just want to pull the id and
> name from the db. I don't want to use lazy loading either. Anybody
> know how to do this?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/datamapper?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to