Sha256: b114d78d6e79d3737b57eec580fc0807f96b7473e66bf0e5a8e4326d305b12c6
Contents?: true
Size: 488 Bytes
Versions: 25
Compression:
Stored size: 488 Bytes
Contents
module Formtastic # @private module HtmlAttributes protected def humanized_attribute_name(method) if @object && @object.class.respond_to?(:human_attribute_name) humanized_name = @object.class.human_attribute_name(method.to_s) if humanized_name == method.to_s.send(:humanize) method.to_s.send(label_str_method) else humanized_name end else method.to_s.send(label_str_method) end end end end
Version data entries
25 entries across 25 versions & 2 rubygems