search for: volretention

Displaying 1 result from an estimated 1 matches for "volretention".

2006 Mar 13
0
Getting AR to downcase table and column names
...override the accessor methods, like so: class Pool < ActiveRecord::Base Pool.table_name = ''pool'' Pool.primary_key = ''poolid'' if STUDLY Pool.table_name = ''Pool'' def id; self.PoolId; end def name; self.Name; end def volretention; self.VolRetention; end end end While this works, it''s not very elegant. I''d much prefer some application-wide "downcase field names" setting, but haven''t found any way to force this behavior. Any hints would be greatly appreciated. -- John Kodis.