We have a legacy database that we want to be able to access through
rails without changing the database. But within rails we would like to
be able to work with easier attributes, for example:
We have a legacy database that we want to be able to access through
rails without changing the database. But within rails we would like to
be able to work with easier attributes, for example:
Database Column Rails
CUSTOMER_LASTNAME lastname
Can we accomplish this by any means?
define your own accessors (that call read/write_attribute or use /=