#45 invalid
Nick Plante

Make column names accessible from DM::Base

Reported by Nick Plante | November 7th, 2007 @ 03:15 PM

drfreeze: How does one get a list of column names for a model?

[4:12pm] ReinH: drfreeze: currently, database.adapter.table(Model).columns.map(&:name)

[4:12pm] ReinH: drfreeze: I can see how that would probably be convenient to get to from DataMapper::Base though

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages