method
human
v8.1.1 -
Show latest stable
- Class:
ActiveModel::Name
human(options = {})public
Transform the model name into a more human format, using I18n. By default, it will underscore then humanize the class name.
class BlogPost extend ActiveModel::Naming end BlogPost.model_name.human # => "Blog post"
Specify options with additional translating options.