Flowdock
human(options={}) public

Transform the model name into a more humane 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.

Show source
Register or log in to add new notes.