Method: TableGo::Column#human_attribute_name
- Defined in:
- lib/table_go/column.rb
#human_attribute_name ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/table_go/column.rb', line 37 def human_attribute_name if table.model_klass.respond_to?(:human_attribute_name) # using rails default I18n table.model_klass.human_attribute_name(name).html_safe else name.to_s.humanize end end |