Is there any way to specify that AR ignore certain columns?
I have a project where I have to connect to a legacy DB where I have a
very wide read only table (actually a view, but the result is the
same). The web app only needs about 1/2 of the columns, the other
stuff I don't need.
Other than specifying a select clause on every find (or a named scope
that applies the select I need), is there a way to tell ActiveRecord
to completely ignore certain columns, or as an alternative declared a
named scope to be applied to all finds of a Model, or declare as
default :select clause?
B. You're assuming I have control of the DB.... NOT!! I have to deal
with what they give me. And yes, it's a MS SQL Server DB, it's hosted
at the other companies office, on the other end of an encrypted
VPN.... Sigh....
Got to love those MS devotees... At least I convinced them to give me
read access to the views, rather than doing absolutely everything
through stored procedures, which is what they originally wanted.