Sha256: 0ab242f660e0b2625beb19e41563d4b3bbc611f5f5dcc560032f8662f256be58
Contents?: true
Size: 259 Bytes
Versions: 20
Compression:
Stored size: 259 Bytes
Contents
module ActiveModel Name.class_eval do def human(options={}) human_name = @klass.humanize_class_name if count = options[:count] n_(human_name, human_name.pluralize, count) else _(human_name) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems