Skip to content

Instantly share code, notes, and snippets.

@btucker
Created May 22, 2014 12:08
Show Gist options
  • Save btucker/d0b737170fbb759a129d to your computer and use it in GitHub Desktop.
Save btucker/d0b737170fbb759a129d to your computer and use it in GitHub Desktop.
Overriding humanization of a particular ActiveRecord column
def self.human_attribute_name(col, options={})
col = case col.to_s
when "address"
"email address"
else
col
end
super(col, options)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment