lib/table_go/column.rb in table_go-0.2.0 vs lib/table_go/column.rb in table_go-0.2.1
- old
+ new
@@ -33,10 +33,10 @@
def method
options[:method]
end
def human_attribute_name
- if table.model_klass.respond_to?(: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
\ No newline at end of file