module ActiveModel

Public Instance Methods

human(options={}) click to toggle source
# File lib/gettext_i18n_rails/active_model/name.rb, line 3
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