module InactiveRecord class Base class <attr_human_name. def human_hint_attributes # :nodoc: read_inheritable_attribute("attr_human_hint") end # Transforms attribute key names into a more humane format, such as "First name" instead of "first_name". Example: # Person.human_attribute_name("first_name") # => "First name" def human_attribute_hint(attribute_key_name) #:nodoc: (read_inheritable_attribute("attr_human_hint") || {})[attribute_key_name.to_s] || '' end end end end