I’m looking for the simplest way to automatically downcase the
attribute names of Models mapped to legacy tables that use upper
class Workorder < ActiveRecord::Base
which has “NAME” as an attribute can use “name” as an attribute.
workorder = Workorder.find(1)
workorder.NAME # => “workorder 1 name”
workorder.name # => “workorder 1 name”