Module: ActiveModel

### Home Classes Methods

### In Files

- lib/gettext_i18n_rails/active_model/name.rb
- lib/gettext_i18n_rails/active_model/translation.rb

### Namespace

- MODULE ActiveModel::Translation

### Methods

- #human

### Class/Module Index

Quicksearch

- GettextI18nRails
- GettextI18nRails::Backend
- GettextI18nRails::BaseParser
- GettextI18nRails::GettextHooks
- GettextI18nRails::HamlParser
- GettextI18nRails::HtmlSafeTranslations
- GettextI18nRails::ModelAttributesFinder
- GettextI18nRails::Railtie
- GettextI18nRails::SlimParser
- RubyGettextExtractor
- RubyGettextExtractor::Extractor18
- RubyGettextExtractor::Extractor19
- RubyGettextExtractor::ExtractorMethods
- ActionController
- ActionController::Base
- ActiveModel
- ActiveModel::Translation
- ActiveRecord
- ActiveRecord::Base
- I18n
- I18n::Config
- Object
- String

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.