Class ActiveModel::Name
In: lib/active_model/naming.rb
Parent: String

Methods

human   new  

External Aliases

collection -> cache_key

Attributes

collection  [R] 
element  [R] 
i18n_key  [R] 
param_key  [R] 
partial_path  [R] 
plural  [R] 
route_key  [R] 
singular  [R] 

Public Class methods

Public Instance methods

Transform the model name into a more humane format, using I18n. By default, it will underscore then humanize the class name

  BlogPost.model_name.human # => "Blog post"

Specify options with additional translating options.

[Validate]